:root {
  --navy: #063898;
  --navy-dark: #052b70;
  --blue: #0879c9;
  --sky: #eaf3ff;
  --pale: #f5f8fc;
  --orange: #f47a2d;
  --green: #45a72c;
  --red: #ef3548;
  --ink: #172033;
  --muted: #596579;
  --line: #d7e1ef;
  --white: #fff;
  --shadow: 0 20px 50px rgba(3, 36, 102, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.7; background: var(--white); }
a { color: inherit; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }

.site-header { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(5vw, 24px); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(6,56,152,.1); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #231f20; font-weight: 800; letter-spacing: .025em; text-decoration: none; }
.brand-mark { width: 200px; height: 100px;}
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.header-cta { color: var(--white); background: var(--navy); padding: 10px 20px; border-radius: 999px; }

.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 6vw; padding: 72px max(7vw, 28px) 88px; background: radial-gradient(circle at 84% 18%, #dcebff 0, #f5f9ff 28%, transparent 48%), linear-gradient(120deg, #fff 55%, #edf4ff 55%); overflow: hidden; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--navy); font-weight: 800; letter-spacing: .08em; }
h1 { margin-bottom: 26px; color: var(--navy); font-size: clamp(2.7rem, 5.4vw, 5.7rem); line-height: 1.08; letter-spacing: -.045em; }
h1 span { font-size: .65em; letter-spacing: -.03em; }
.hero-lead { max-width: 680px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: 0 24px; border-radius: 8px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6,56,152,.18); }
.button-primary { color: var(--white); background: var(--navy); }
.button-secondary { color: var(--navy); background: var(--white); border: 2px solid var(--navy); }
.button-download { color: var(--white); background: #238443; }
.button-accent { color: var(--white); background: var(--orange); }
.support-note { color: var(--muted); font-size: .92rem; }
.hero-visual { position: relative; justify-self: center; width: min(480px, 95%); }
.hero-visual img { width: 100%; height: clamp(470px, 58vw, 650px); object-fit: cover; object-position: 54% center; border-radius: 18px; box-shadow: var(--shadow); }
.visual-label { position: absolute; left: -38px; bottom: 36px; display: grid; gap: 2px; padding: 16px 20px; color: var(--white); background: var(--navy); box-shadow: 0 16px 28px rgba(6,56,152,.25); }
.visual-label span { font-size: .82rem; opacity: .8; }

.service-overview { position: relative; z-index: 2; max-width: 1180px; margin: -34px auto 0; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.overview-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 6px 22px; border-bottom: 1px solid var(--line); }
.overview-heading .eyebrow { margin: 0; }
.overview-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
.overview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 22px; }
.overview-grid article { min-width: 0; padding: 16px; border-radius: 12px; background: var(--pale); }
.overview-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; color: var(--white); background: var(--navy); border-radius: 10px; font-size: .78rem; font-weight: 900; }
.overview-grid strong { color: var(--navy); }
.overview-grid p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

.section { padding: 108px max(7vw, 28px); }
.section-heading { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-heading h2, .contact h2 { margin-bottom: 16px; color: var(--navy); font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.25; letter-spacing: -.025em; }
.audience-grid, .case-grid, .inspection-grid, .example-grid, .resource-grid, .lifecycle-grid { display: grid; gap: 22px; max-width: 1180px; margin: 0 auto; }
.audience-grid { grid-template-columns: repeat(3, 1fr); }
.audience-grid article { padding: 30px; border-radius: 14px; box-shadow: 0 10px 35px rgba(6,56,152,.08); border-top: 7px solid var(--orange); background: #fff4ec; }
.audience-grid article:nth-child(2) { border-color: var(--green); background: #f0faec; }
.audience-grid article:nth-child(3) { border-color: var(--blue); background: #eef6fd; }
.audience-grid span { color: var(--muted); font-weight: 800; }
.audience-grid h3 { margin: 4px 0 8px; font-size: 1.35rem; }
.audience-grid p { margin-bottom: 0; }

.results { color: var(--white); background: var(--navy-dark); }
.section-heading-light h2, .section-heading-light .eyebrow { color: var(--white); }
.section-heading-light > p:last-child { color: #d9e6ff; }
.case-grid { grid-template-columns: repeat(2, 1fr); }
.case-card { overflow: hidden; color: var(--ink); background: var(--white); border-radius: 18px; box-shadow: 0 16px 35px rgba(0,0,0,.16); }
.compare-images { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #ced9e8; }
.compare-images figure { position: relative; aspect-ratio: 1.16; overflow: hidden; background: #edf2f8; }
.compare-images span { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 10px; color: var(--white); background: rgba(23,32,51,.78); border-radius: 4px; font-size: .78rem; font-weight: 900; }
.compare-images figure:last-child span { background: var(--blue); }
.compare-images img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.case-copy { padding: 24px 26px 26px; }
.case-copy h3 { margin-bottom: 6px; color: var(--navy); font-size: 1.3rem; }
.case-copy p { margin: 0; color: var(--muted); }
.inspection-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.inspection-grid article { overflow: hidden; color: var(--ink); background: #eef5ff; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; }
.inspection-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transform: scale(1.04); }
.inspection-grid div { padding: 22px; }
.inspection-grid h3 { margin-bottom: 6px; color: var(--navy); }
.inspection-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.report-card { max-width: 1180px; margin: 28px auto 0; padding: 32px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; color: var(--ink); background: var(--white); border-radius: 16px; }
.report-card h3 { margin-bottom: 0; color: var(--navy); font-size: 1.45rem; }
.report-card p:last-child { margin-bottom: 0; }

.examples { background: #f7faff; }
.example-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.example-card { display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(6,56,152,.08); }
.example-card.featured { border: 2px solid var(--navy); }
.example-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--navy); font-size: .85rem; font-weight: 800; }
.example-top > span { padding: 3px 9px; color: var(--white); background: var(--navy); border-radius: 4px; white-space: nowrap; }
.example-card h3 { color: var(--navy); font-size: 1.35rem; }
.example-card ul { flex: 1; margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.example-card li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.example-card li strong { color: var(--navy); white-space: nowrap; }
.example-total { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px; color: var(--navy); background: var(--sky); border-radius: 10px; font-weight: 900; }
.example-total strong { text-align: right; }
.example-total b { color: var(--red); font-size: 1.35rem; }
.simulator-cta { max-width: 1180px; margin: 30px auto 0; padding: 34px 38px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; color: var(--white); background: linear-gradient(120deg, var(--navy), #0879c9); border-radius: 18px; }
.simulator-cta .eyebrow { color: #acd7ff; }
.simulator-cta h3 { margin-bottom: 6px; font-size: 1.55rem; }
.simulator-cta p:last-child { margin-bottom: 0; color: #deebff; }

.flow { background: var(--pale); }
.flow-list { max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.flow-list li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 0 0 40px; }
.flow-list li:not(:last-child)::after { content: ""; position: absolute; left: 35px; top: 72px; bottom: 0; width: 2px; background: #bdd0eb; }
.flow-list li > span { display: grid; place-items: center; width: 72px; height: 72px; color: var(--white); background: var(--navy); border-radius: 50%; font-size: 1.6rem; font-weight: 900; }
.flow-list div { padding: 10px 0; }
.flow-list h3 { margin-bottom: 6px; color: var(--navy); font-size: 1.35rem; }
.flow-list p { margin-bottom: 0; color: var(--muted); }

.resource-grid { grid-template-columns: repeat(3, 1fr); }
.resource-card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 35px rgba(6,56,152,.08); }
.file-type { display: inline-block; padding: 5px 10px; margin-bottom: 22px; color: var(--white); background: var(--navy); font-size: .72rem; font-weight: 900; letter-spacing: .08em; border-radius: 4px; }
.resource-xlsx .file-type { background: #238443; }
.resource-calc .file-type { background: var(--orange); }
.resource-card h3 { margin-bottom: 10px; font-size: 1.4rem; }
.resource-card p { color: var(--muted); }
.resource-card small { display: block; margin-top: 12px; color: var(--muted); }

.lifecycle { background: #f7f8fb; }
.lifecycle-grid { grid-template-columns: repeat(3, 1fr); }
.lifecycle-grid article { padding: 34px; background: var(--white); border-top: 7px solid var(--green); border-radius: 14px; }
.lifecycle-grid article:nth-child(2) { border-color: var(--orange); }
.lifecycle-grid article:nth-child(3) { border-color: var(--red); }
.lifecycle-grid strong { color: var(--green); font-size: 1.35rem; }
.lifecycle-grid article:nth-child(2) strong { color: var(--orange); }
.lifecycle-grid article:nth-child(3) strong { color: var(--red); }
.lifecycle-grid h3 { margin: 10px 0 8px; }
.lifecycle-grid p { margin-bottom: 0; color: var(--muted); }
.legal-note { max-width: 1180px; margin: 24px auto 0; padding: 18px 22px; border-left: 5px solid var(--red); background: #fff1f2; font-size: .9rem; }

.contact { padding: 106px max(7vw, 28px); color: var(--white); background: linear-gradient(130deg, #052c75, #0745b5); }
.contact .eyebrow, .contact h2 { color: var(--white); }
.contact-intro { max-width: 980px; margin: 0 auto 42px; }
.contact-intro > p:last-child { color: #dce8ff; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
.contact-item { display: flex; flex-direction: column; justify-content: center; min-height: 150px; padding: 24px 28px; color: var(--navy); background: var(--white); border-radius: 12px; text-decoration: none; transition: transform .2s ease; }
.contact-item:hover { transform: translateY(-3px); }
.contact-item span { font-weight: 800; }
.contact-item strong { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.25; }
.contact-item small { color: var(--muted); }
.contact-mail { grid-column: 1 / -1; }
.contact-mail strong { font-size: clamp(1.1rem, 2.2vw, 1.8rem); word-break: break-all; }

footer { padding: 42px max(7vw, 28px) 50px; background: #fff; }
.brand-footer { margin-bottom: 14px; }
footer > p { margin-bottom: 8px; }
.footnote { max-width: 1000px; color: var(--muted); font-size: .76rem; }
.mobile-cta { display: none; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: grid; place-items: center; width: 56px; height: 56px; color: var(--white); background: var(--navy); border: 2px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,.22); text-decoration: none; font-weight: 900; line-height: 1; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.back-to-top span { display: block; margin-top: -10px; font-size: .56rem; letter-spacing: .08em; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 980px) {
  .site-header { height: 64px; }
  nav > a:not(.header-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; background: linear-gradient(180deg, #fff, #eef5ff); }
  .hero-copy { max-width: none; }
  .hero-visual { width: min(620px, 88vw); }
  .hero-visual img { height: min(760px, 104vw); object-position: 54% center; }
  .service-overview { max-width: calc(100% - 32px); }
  .overview-heading { align-items: start; flex-direction: column; gap: 4px; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid article:last-child { grid-column: 1 / -1; }
  .audience-grid, .inspection-grid, .lifecycle-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .example-card { max-width: 680px; width: 100%; margin: 0 auto; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .resource-calc { grid-column: 1 / -1; }
  .report-card { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 66px; }
  html { scroll-padding-top: 64px; }
  .site-header { padding: 0 18px; }
  .brand { font-size: .82rem; }
  .brand-mark { width: 28px; height: 19px; }
  .header-cta { padding: 8px 14px; }
  .hero { min-height: auto; padding: 46px 20px 76px; gap: 42px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { width: 100%; }
  .hero-visual img { height: 125vw; min-height: 470px; max-height: 640px; border-radius: 12px; }
  .visual-label { left: -8px; bottom: 24px; }
  .service-overview { margin-top: -32px; padding: 24px 18px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid article, .overview-grid article:last-child { grid-column: auto; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 14px; }
  .overview-icon { margin: 0; }
  .section { padding: 76px 20px; }
  .section-heading { margin-bottom: 34px; text-align: left; }
  .section-heading h2, .contact h2 { font-size: 2rem; }
  .case-grid, .resource-grid, .contact-grid { grid-template-columns: 1fr; }
  .compare-images { grid-template-columns: 1fr 1fr; }
  .case-copy { padding: 20px; }
  .resource-calc { grid-column: auto; }
  .resource-card { padding: 28px 22px; }
  .simulator-cta { grid-template-columns: 1fr; padding: 28px 22px; }
  .contact { padding: 76px 20px; }
  .contact-mail { grid-column: auto; }
  .flow-list li { grid-template-columns: 54px 1fr; gap: 16px; }
  .flow-list li > span { width: 54px; height: 54px; }
  .flow-list li:not(:last-child)::after { left: 26px; top: 54px; }
  .back-to-top { right: 14px; bottom: 78px; width: 50px; height: 50px; }
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 24px rgba(0,0,0,.16); }
  .mobile-cta a { display: grid; place-items: center; height: 66px; color: var(--white); background: var(--navy); font-weight: 900; text-decoration: none; }
  .mobile-cta a:last-child { background: var(--orange); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
