:root {
  --navy: #20366b;
  --ink: #162849;
  --muted: #465873;
  --paper: #f0f5fb;
  --line: #cedaeb;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1rem/1.8 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2671bd; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.35; letter-spacing: .015em; }
h3 { font-size: 1.23rem; line-height: 1.45; }
p { color: var(--muted); }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 8px 12px; background: white; transform: translateY(-130%); }
.skip-link:focus { transform: none; }
.site-header, footer { color: white; background: var(--navy); }
.header-nav, .nav-icon, footer ul { list-style: none; padding: 0; margin: 0; }
.header-nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 86px; padding: 10px clamp(16px, 4vw, 52px); }
.header-logo img { width: 68px; }
.header-txt { color: white; font-size: .95rem; letter-spacing: .06em; }
.nav-icon { display: flex; align-items: center; gap: clamp(7px, 1.5vw, 16px); }
.nav-icon a, .header-logo a { display: block; border-radius: 6px; }
.nav-icon img { width: clamp(36px, 5vw, 54px); }
.site-header a:focus-visible, footer a:focus-visible { outline-color: white; }

.hero { background: linear-gradient(115deg, #eef4fb, #fff 90%); border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(58px, 8vw, 112px); }
.hero h1 { color: var(--navy); font-size: clamp(2.3rem, 4.65vw, 4.35rem); line-height: 1.12; letter-spacing: .005em; }
.hero-lead { margin-top: 24px; color: var(--ink); font-size: clamp(1.2rem, 2.2vw, 1.75rem); font-weight: 750; line-height: 1.5; }
.hero-lead + p { margin-top: 16px; max-width: 36em; }
.hero-image { overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: 0 20px 54px #20366b20; }
.hero-image img { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; font-size: .95rem; font-weight: 750; text-align: center; text-decoration: none; }
.primary { color: white; background: var(--navy); }
.primary:hover { background: #152650; }
.secondary { color: var(--navy); border-color: #9bb0d0; background: white; }
.secondary:hover, .light:hover { background: #e3edfa; }
.light { margin-top: 25px; color: var(--navy); background: white; }

.section { padding-block: clamp(55px, 7vw, 92px); }
.section h2 { margin-bottom: 27px; }
.service-grid, .analysis-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.service-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; }
.service-card p, .example p { margin-top: 12px; }
.service-card ul { margin: 18px 0 0; padding-left: 1.3em; color: var(--ink); }
.service-card li + li { margin-top: 6px; }
.analysis-section, .faq-section { background: var(--paper); }
.analysis-layout { align-items: center; gap: clamp(22px, 6vw, 84px); }
.example { padding: clamp(20px, 3vw, 34px); background: white; border-left: 4px solid #3877b7; border-radius: 0 12px 12px 0; }

.process { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.process li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 18px; }
.process li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; color: #2d5d9b; font-size: 1.2rem; font-weight: 750; }
.process p { margin-top: 8px; }
details { background: white; border: 1px solid var(--line); border-radius: 8px; }
details + details { margin-top: 12px; }
summary { padding: 15px 20px; color: var(--navy); font-weight: 700; cursor: pointer; }
details p { padding: 0 20px 17px; }
.closing { padding-block: clamp(50px, 7vw, 82px); color: white; background: #182d5a; text-align: center; }
.closing p { margin-top: 15px; color: #edf4ff; }
.closing a:focus-visible { outline-color: white; }

footer { padding: 34px 55px 30px; text-align: center; }
footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 25px; }
footer a { text-underline-offset: .24em; }
footer small { display: block; margin-top: 17px; }
.home-link { display: inline-block; margin-top: 16px; font-weight: 700; }
.pagetop { position: fixed; z-index: 2; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #a3b8d7; border-radius: 50%; background: #f0f6ff; color: var(--navy); }
.pagetop__arrow { width: 11px; height: 11px; border: solid currentColor; border-width: 3px 0 0 3px; transform: translateY(3px) rotate(45deg); }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 40px); }
  .header-nav { min-height: 69px; gap: 10px; }
  .header-nav > li:nth-child(2) { display: none; }
  .header-logo img { width: 52px; }
  .hero-layout, .analysis-layout { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 44px; }
  .hero-image { max-width: 540px; }
  .hero-image img { aspect-ratio: 16 / 10; object-fit: cover; }
  .process { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wide-only { display: none; }
}
@media (max-width: 520px) {
  .service-grid, .process { grid-template-columns: 1fr; }
  .actions { align-items: stretch; flex-direction: column; }
  footer { padding-inline: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-image figcaption { padding: 8px 14px; color: var(--muted); background: white; font-size: .875rem; }
.analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.example .metric { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.metric strong { display: block; color: var(--navy); }
@media (max-width: 780px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .analysis-section .service-grid { grid-template-columns: 1fr; }
}

.tool-section { background: #f0f5fb; }
.tool-intro { max-width: 52em; margin-bottom: 28px; }
.tool-feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 40px); background: white; border: 1px solid var(--line); border-radius: 14px; }
.tool-feature + .tool-feature { margin-top: 24px; }
.tool-feature--reverse { grid-template-columns: 1.15fr 1fr; }
.tool-feature--reverse figure { grid-column: 1; grid-row: 1; }
.tool-feature p { margin-top: 12px; }
.tool-feature ul { padding-left: 1.25em; margin: 14px 0; color: var(--ink); }
.tool-feature li + li { margin-top: 6px; }
.report-image { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; }
.report-image a { display: block; border-radius: 10px 10px 0 0; }
.report-image img { width: 100%; border-radius: inherit; }
.report-image figcaption { padding: 10px 13px; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
@media (max-width: 780px) {
  .tool-feature, .tool-feature--reverse { grid-template-columns: minmax(0, 1fr); }
  .tool-feature--reverse figure { grid-column: auto; grid-row: auto; }
}
