:root {
  --navy: #1C3D5A;
  --blue: #4FA3D9;
  --line: #06C755;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --card: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(28, 61, 90, 0.12);

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

/* ベース */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; color: var(--navy); }
h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }
p, li { font-size: clamp(15px, 1.5vw, 17px); }

a { color: var(--navy); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* ヘッダー */
header {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}
header.scrolled { box-shadow: var(--shadow); background: #fff; }

.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.brand .logo {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 900;
}

.navlinks { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.navlinks a { color: var(--ink); opacity: .9; font-weight: 600; }
.navlinks a:hover { opacity: 1; color: var(--navy); }

.cta { margin-left: 8px; }
.btn {
  --btn-bg: var(--line);
  --btn-color: #fff;
  appearance: none; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-color);
  padding: 12px 30px; border-radius: 999px; font-weight: 800; font-size: 15px;margin:0 0;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(6, 199, 85, .25);
  transform: translateY(0); transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(6,199,85,.35); }
.btn:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(6,199,85,.25); }
.btn.secondary { --btn-bg: #e8f7ed; --btn-color: var(--line); box-shadow: none; border: 1px solid #c7ecd3; }

/* モバイルナビ */
.menu-toggle { display: none; margin-left: auto; }
.menu-toggle button {
  background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy); font-weight: 700;
}

/* ヒーロー */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
  padding: clamp(40px, 6vw, 80px) 0;
}
.hero::after {
  content: ""; position: absolute; inset: -10% -20% auto auto; z-index: -1;
  width: 55vw; max-width: 800px; aspect-ratio: 1.6/1; border-radius: 36px;
  background: radial-gradient(1200px 500px at 90% -10%, rgba(79,163,217,.25), transparent 60%),
              radial-gradient(1000px 400px at 100% 10%, rgba(28,61,90,.15), transparent 60%);
  filter: blur(2px);
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #eef6fb; color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  width: fit-content; border: 1px solid #dbeafd;
}

.lead { color: var(--muted); margin: 12px 0 22px; font-size: clamp(15px, 1.8vw, 18px); }
.subnote { color: var(--muted); font-size: 13px; margin-top: 8px; }

.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px;
}
.hero-metric { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { background: var(--card); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); }
.metric b { font-size: clamp(18px, 3vw, 22px); color: var(--navy); }
.metric small { color: var(--muted); display: block; margin-top: 6px; }

.FirstCta{
    text-align:center;
}

/* 共通セクション */
section { padding: clamp(40px, 6vw, 84px) 0; }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(18px, 3vw, 24px); }
.section-desc { color: var(--muted); max-width: 820px; }

/* 課題リスト */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.pain-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px; }
.dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 7px; }

/* 図解（DCとは） */
.diagram {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 28px); align-items: start;
  background: linear-gradient(180deg, #ffffff, #f7fbff); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(16px, 3vw, 24px);
}
.flow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; color: var(--navy);
}
.arrow { width: 18px; height: 18px; border-right: 3px solid var(--blue); border-top: 3px solid var(--blue); transform: rotate(45deg); opacity: .8; }
.points { display: grid; gap: 10px; }
.points li { list-style: none; position: relative; padding-left: 22px; }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); opacity: .8; }

/* メリット */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; background: #eaf5fb; color: var(--navy); display: grid; place-items: center; }
.card p { color: var(--muted); margin: 0; }

/* シミュレーション例 */
.sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sim-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.sim-card b { font-size: clamp(18px, 2.6vw, 22px); color: var(--navy); }
.sim-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* 強み */
.strengths { display: grid; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check svg { flex: 0 0 22px; }

/* フロー */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.step .num { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 10px; font-weight: 800; }

/* 事例・声 */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.voice { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.voice b { color: var(--navy); }
.quote { font-style: italic; }

/* クロージング CTA */
.closing { background: linear-gradient(180deg, #f5f9ff, #e9f3fb); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.closing .panel { background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; }

/* フッター */
footer { padding: 28px 0; background: #0b2234; color: #cfe3f2; }
footer a { color: #cfe3f2; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; align-items: start; }

/* ユーティリティ */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* スクロール位置のズレ対策 */
:target { scroll-margin-top: 86px; }

/* レスポンシブ */
@media (max-width: 980px) {
  .navlinks { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .diagram { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .voices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pain-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* 低速/簡易アニメーション */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(6px); animation: fade .6s ease forwards; }
  .fade-in:nth-child(2) { animation-delay: .06s; }
  .fade-in:nth-child(3) { animation-delay: .12s; }
  @keyframes fade { to { opacity: 1; transform: none; } }
}
