:root {
  color-scheme: light;
  --ink: #142b4e;
  --sub: #4d6480;
  --line: #d5e2f0;
  --paper: #f5f9fe;
  --panel: #fff;
  --blue: #518dd5;
  --blue-strong: #2867b4;
  --navy: #081833;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.4; letter-spacing: .01em; }
.wrap { width: min(100% - 48px, 1160px); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 20; background: var(--navy); color: #fff; padding: 8px 14px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; width: 163px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; color: #344e70; font-size: 14px; font-weight: 700; }
.desktop-nav a:hover { color: var(--blue-strong); }
.header-contact { display: inline-flex; align-items: center; gap: 18px; padding: 10px 18px; background: var(--blue-strong); color: #fff; border-radius: 5px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.header-contact:hover { background: #164c93; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/cosmic-ai.png") center 48% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 15, 38, .96) 0%, rgba(7, 23, 54, .91) 31%, rgba(7, 24, 58, .55) 58%, rgba(6, 17, 39, .12) 100%);
}
.hero-grid { display: block; min-height: 590px; padding-block: 105px 100px; }
.hero-copy { max-width: 670px; }
.eyebrow, .section-kicker { margin-bottom: 17px; color: var(--blue-strong); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.hero .eyebrow { color: #a8d4ff; }
.hero h1 { margin: 0 0 25px; font-size: clamp(38px, 4.6vw, 62px); font-weight: 800; line-height: 1.42; letter-spacing: .02em; text-shadow: 0 2px 20px #0005; }
.hero h1 span { color: #a7d4ff; }
.hero-lead { max-width: 570px; margin-bottom: 32px; color: #e6f1ff; font-size: 18px; line-height: 2; text-shadow: 0 1px 14px #0009; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 54px; padding: 12px 22px; border-radius: 5px; font-size: 15px; font-weight: 800; line-height: 1.5; }
.button:hover { transform: translateY(-2px); transition: transform .2s ease; }
.button-primary { background: #77ace6; color: #082043; }
.button-primary:hover { background: #a9d2ff; }

.section { padding-block: 95px; scroll-margin-top: 28px; }
.intro { background: #fff; }
.intro-grid { display: grid; grid-template-columns: .36fr 1fr; gap: 45px; }
.intro h2 { margin-bottom: 25px; font-size: clamp(30px, 3.5vw, 44px); }
.intro p:last-child { max-width: 740px; color: var(--sub); font-size: 17px; line-height: 2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-heading h2, .work h2, .about h2, .contact h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); }
.section-heading > p { margin-bottom: 6px; color: var(--sub); }
.services { background: #f4f8fd; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 425px; padding: 32px 28px 34px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #84b2e7; box-shadow: 0 12px 32px #153d7210; }
.service-number { display: flex; align-items: center; gap: 12px; margin-bottom: 31px; color: var(--blue-strong); font-size: 16px; font-weight: 800; }
.service-number span { font-size: 13px; }
.service-card h3 { margin-bottom: 19px; font-size: 24px; }
.service-card > p:not(.service-number) { min-height: 140px; color: var(--sub); font-size: 15px; line-height: 1.9; }
.service-card ul { margin: 20px 0 0; padding: 18px 0 0 19px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.service-card li + li { margin-top: 6px; }
.primary-service { background: #eaf4ff; border-top-color: var(--blue-strong); }
.ocr { background: linear-gradient(120deg, #e6f1ff, #f4f9ff 72%); }
.ocr-grid { display: grid; grid-template-columns: .95fr 1fr; align-items: center; gap: clamp(35px, 6vw, 85px); }
.ocr-date { display: inline-block; margin: 0 0 21px; padding: 5px 12px; border: 1px solid #8cb7e9; border-radius: 4px; background: #fff; color: #205aa0; font-size: 13px; font-weight: 800; }
.ocr h2 { margin: 0 0 23px; font-size: clamp(29px, 3.2vw, 43px); }
.ocr-intro > p:not(.section-kicker, .ocr-date) { max-width: 540px; margin-bottom: 26px; color: var(--sub); font-size: 16px; line-height: 2; }
.button-ocr { background: var(--blue-strong); color: #fff; }
.button-ocr:hover { background: #164c93; }
.ocr-panel { padding: 34px 36px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue-strong); box-shadow: 0 16px 38px #153d7215; }
.ocr-panel-title { margin-bottom: 17px; color: #205aa0; font-size: 14px; font-weight: 800; }
.ocr-flow { margin: 0; padding: 0; list-style: none; }
.ocr-flow li { display: flex; gap: 18px; padding: 19px 0; border-top: 1px solid var(--line); }
.ocr-flow li > span { color: var(--blue-strong); font-size: 23px; font-weight: 800; line-height: 1.3; }
.ocr-flow h3 { margin: 0 0 4px; font-size: 18px; }
.ocr-flow p { margin: 0; color: var(--sub); font-size: 14px; }
.ocr-note { margin: 11px 0 0; padding: 13px 15px; background: #edf5ff; color: #365b85; font-size: 13px; }
.approach { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 18px; padding-top: 25px; border-top: 1px solid var(--line); }
.steps li > span { color: var(--blue-strong); font-size: 26px; font-weight: 800; line-height: 1.3; }
.steps h3 { margin: 0 0 10px; font-size: 20px; }
.steps p { margin: 0; color: var(--sub); font-size: 15px; }
.work { background: linear-gradient(120deg, #e3f0fe, #f5f9ff 75%); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.work-intro { max-width: 490px; margin-top: 24px; color: var(--sub); }
.work-items { display: grid; gap: 15px; }
.work-items article { padding: 24px 28px; background: #fff; border-left: 3px solid var(--blue-strong); box-shadow: 0 12px 25px #153d720c; }
.work-items span { color: var(--blue-strong); font-size: 12px; font-weight: 800; }
.work-items h3 { margin: 11px 0 8px; font-size: 20px; }
.work-items p { margin: 0; color: var(--sub); font-size: 15px; }
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .62fr 1fr; gap: 70px; }
.about-grid > div:last-child p { margin: 0 0 20px; color: var(--sub); font-size: 17px; }
.contact { color: #fff; background: linear-gradient(110deg, #102c5a, #081937); }
.contact-grid { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.contact .section-kicker { color: #a9d2ff; }
.contact h2 { margin-bottom: 18px; }
.contact-grid > div:first-child > p:last-child { max-width: 600px; color: #d7e8fa; }
.contact-action { flex: none; }
.button-light { background: #fff; color: #143461; }
.contact-action p { margin: 10px 0 0; color: #d7e8fa; font-size: 13px; }
.email-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 10px 10px 10px 15px; border: 1px solid #7496bd; border-radius: 5px; color: #fff; }
.email-copy span { overflow-wrap: anywhere; font-size: 15px; }
.email-copy button { flex: none; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 4px; background: #d9ebff; color: #10345f; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.email-copy button:hover { background: #fff; }
.email-copy button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 28px; min-height: 110px; }
.footer-inner .brand-logo { width: 142px; }
.footer-inner > span { color: var(--sub); font-size: 14px; }
.footer-inner small { margin-left: auto; color: #6d8098; }

@media (max-width: 950px) {
  .header-inner { gap: 15px; }
  .desktop-nav { gap: 14px; font-size: 13px; }
  .brand-logo { width: 145px; }
  .work-grid { gap: 35px; }
}
@media (max-width: 900px) {
  .wrap { width: min(100% - 36px, 1160px); }
  .header-inner { min-height: 78px; }
  .brand-logo { width: 142px; }
  .desktop-nav, .header-contact { display: none; }
  .mobile-menu { display: block; position: relative; margin-left: auto; }
  .mobile-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; font-size: 14px; font-weight: 700; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: 100%; right: 0; display: flex; flex-direction: column; min-width: 220px; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 35px #142b4e20; }
  .mobile-menu nav a { padding: 9px 11px; font-size: 15px; }
  .hero::before { background-position: 56% center; }
  .hero::after { background: linear-gradient(90deg, rgba(4, 15, 38, .94), rgba(7, 23, 54, .76)); }
  .hero-grid { min-height: 560px; padding-block: 84px 80px; }
  .hero h1 { font-size: clamp(35px, 8vw, 52px); }
  .hero-lead { font-size: 16px; }
  .section { padding-block: 70px; }
  .intro-grid, .about-grid, .work-grid, .ocr-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { display: block; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-card > p:not(.service-number) { min-height: 0; }
  .steps { gap: 25px; }
  .ocr-panel { padding: 27px 24px; }
  .contact-grid { display: block; }
  .contact-action { margin-top: 26px; }
  .footer-inner { flex-wrap: wrap; padding-block: 24px; }
  .footer-inner small { width: 100%; margin-left: 0; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .button { width: 100%; gap: 12px; font-size: 14px; }
  .contact-action .button { font-size: 13px; overflow-wrap: anywhere; }
  .email-copy { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .ocr h2, .work h2, .about h2, .contact h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; transition: none; }
}
