:root {
  --ink: #152e3b;
  --ink-soft: #49616c;
  --ocean: #195d7e;
  --ocean-dark: #103c56;
  --sky: #e7f0f3;
  --sand: #f4f1e9;
  --paper: #fffefb;
  --line: #cbd5d8;
  --white: #fff;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --content: 1248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.9 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.52; letter-spacing: .01em; }
h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.55; }
h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.55; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f5a14e;
  outline-offset: 4px;
}
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 6rem, var(--content)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 9vw, 8rem); }
.section--sand { background: var(--sand); }
.section--sky { background: var(--sky); }
.eyebrow {
  margin-bottom: 1.4rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lead { margin-top: 1.4rem; max-width: 46rem; color: var(--ink-soft); }
.section-head { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.section-head .lead { margin: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 3.5rem;
  padding: .9rem 1.5rem;
  border: 1px solid var(--ocean);
  border-radius: 3px;
  background: var(--ocean);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}
.button:hover { background: var(--ocean-dark); transform: translateY(-2px); }
.button--light { border-color: white; background: white; color: var(--ink); }
.button--light:hover { background: var(--sky); }
.button--ghost { background: transparent; color: var(--ocean); }
.button--ghost:hover { background: var(--sky); }
.text-link { display: inline-flex; gap: 1.25rem; padding-block: .4rem; border-bottom: 1px solid currentColor; font-size: 1rem; font-weight: 700; }
.text-link:hover { color: var(--ocean); }
.tag { display: inline-block; font-size: .875rem; color: var(--ink-soft); letter-spacing: .04em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 96px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.brand img { width: 40px; height: auto; }
.brand small { display: block; margin-top: .15rem; font: .62rem/1.4 var(--sans); letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 2rem; font-size: .925rem; }
.main-nav a { padding-block: .65rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ocean); }
.nav-cta { border-bottom: 1px solid currentColor; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: none; padding: .6rem 0; }

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
  overflow: hidden;
  display: grid;
  color: white;
  background: #24455a;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,61,.82) 0%, rgba(16,54,76,.5) 48%, rgba(10,42,59,.12) 100%); }
.hero-inner { position: relative; z-index: 1; align-self: center; padding-block: 5rem; }
.hero .eyebrow { font-size: 1rem; }
.hero-copy { max-width: 800px; }
.hero-lead { margin-top: 1.6rem; max-width: 740px; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem 2rem; margin-top: 2rem; }
.hero .text-link:hover { color: white; }
.hero-note { margin-top: 1.3rem; font-size: .925rem; }
.hero-foot { position: absolute; z-index: 2; left: 3rem; right: 3rem; bottom: 0; display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.45); font-size: .78rem; letter-spacing: .12em; }

.page-hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 11vw, 9rem); background: var(--sky); }
.page-hero--photo { color: white; background: #24455a; }
.page-hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,61,.85), rgba(17,65,89,.35)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lead { font-size: 1.2rem; }
.page-hero--photo .lead { color: white; }
.page-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.3rem; font-size: .82rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: .3rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.service-card { border-top: 1px solid var(--ink); padding-top: 1.75rem; }
.service-number { font: 2.1rem/1 var(--serif); }
.service-card h3 { margin-top: 1.2rem; }
.service-value { margin-block: 1.25rem; font: 1.65rem/1.75 var(--serif); }
.service-card > p:not(.service-value):not(.tag) { color: var(--ink-soft); }
.service-card .text-link { margin-top: 1.4rem; }
.service-band { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2.5rem; align-items: center; margin-top: 4rem; padding-block: 2.2rem; border-block: 1px solid var(--line); }
.service-band p { color: var(--ink-soft); }
.future-note { margin-top: 2rem; color: var(--ink-soft); font-size: 1rem; }

.works-list { display: grid; gap: 6rem; }
.work { display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: center; }
.work:nth-child(even) .work-media { order: 2; }
.screen { overflow: hidden; border: 1px solid #bfcbd0; background: white; }
.screen-bar { display: flex; align-items: center; gap: .3rem; height: 28px; padding-inline: .75rem; background: #f3f5f5; }
.screen-bar i { width: 5px; height: 5px; border-radius: 50%; background: #a4b1b6; }
.screen-bar span { margin-left: .6rem; color: #566a74; font-size: .65rem; }
.screen-image { aspect-ratio: 16 / 9; overflow: hidden; background: #dde5e6; }
.screen-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen-image--aisp img { height: auto; }
.screen-image--drive img { object-position: center; }
.work-copy p:not(.tag) { margin-top: 1.1rem; color: var(--ink-soft); }
.work-copy .text-link { margin-top: 1.5rem; }
.notice { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--ocean); background: rgba(255,255,255,.65); color: var(--ink-soft); font-size: .9rem; }

.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3.5rem 2.5rem; }
.demo-item { display: block; }
.demo-image { aspect-ratio: 8 / 5; overflow: hidden; margin-bottom: 1.25rem; background: #e8ecec; }
.demo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.demo-item:hover .demo-image img { transform: scale(1.025); }
.demo-item h3 { display: flex; justify-content: space-between; gap: 1rem; }
.demo-item > p:last-child { margin-top: .45rem; color: var(--ink-soft); font-size: 1rem; }
.demo-footer { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.demo-footer p { max-width: 40rem; color: var(--ink-soft); font-size: 1rem; }

.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.compare-card { padding: 2.5rem; border-top: 3px solid var(--ocean); background: white; }
.compare-card .tag { margin-bottom: 1rem; }
.compare-card ul { margin: 1.5rem 0 0; padding-left: 1.25rem; color: var(--ink-soft); }
.compare-card li + li { margin-top: .5rem; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 0; list-style: none; counter-reset: flow; }
.flow li { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.flow li::before { counter-increment: flow; content: "0" counter(flow); display: block; margin-bottom: .9rem; font: 1.8rem/1 var(--serif); color: var(--ocean); }
.flow p { margin-top: .6rem; color: var(--ink-soft); font-size: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { padding-top: 1rem; color: var(--ink-soft); }

.consultation { text-align: center; background: var(--sky); }
.consultation p { margin: 1.2rem auto 2rem; max-width: 48rem; }
.consultation .button { min-width: min(100%, 24rem); }
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 5rem; align-items: start; }
.contact-aside { position: sticky; top: 8rem; }
.contact-aside p { margin-top: 1.4rem; color: var(--ink-soft); }
.contact-form { padding: 3rem; background: white; border-top: 3px solid var(--ocean); }
.field { margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field label, .field legend { display: block; margin-bottom: .55rem; font-size: 1rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #aebdc3; border-radius: 2px; background: white; padding: .8rem .9rem; color: var(--ink); }
.field textarea { min-height: 11rem; resize: vertical; }
.req { margin-left: .4rem; color: #9e372d; font-size: .78rem; }
.hint, .error, .form-status { margin-top: .45rem; font-size: .84rem; line-height: 1.7; }
.hint { color: var(--ink-soft); }
.error, .form-status.is-bad { color: #9e372d; }
.form-status.is-good { color: #176a45; }
[aria-invalid="true"] { border-color: #a83e32 !important; background: #fff8f7 !important; }
.radio-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.radio-row label, .consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.radio-row input, .consent input { width: auto; margin-top: .45rem; }
.consent a { text-decoration: underline; text-underline-offset: .25rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 2rem; background: var(--sky); }
.form-done p { margin-top: 1rem; }

.site-footer { padding-block: 4rem 2rem; background: var(--paper); }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; }
.footer-copy { max-width: 34rem; margin-top: 1.5rem; color: var(--ink-soft); font-size: 1rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: .8rem 2rem; align-content: start; font-size: .9rem; }
.footer-nav a:hover { color: var(--ocean); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: .25rem; }

@media (max-width: 960px) {
  .wrap { width: min(100% - 4rem, var(--content)); }
  .main-nav { gap: 1.2rem; font-size: .82rem; }
  .section-head, .work, .contact-layout { gap: 2.5rem; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  body { font-size: 1rem; }
  .wrap { width: min(100% - 3rem, var(--content)); }
  .section { padding-block: 4.5rem; }
  .section-head, .service-grid, .service-band, .work, .demo-grid, .compare, .contact-layout, .field-row { grid-template-columns: 1fr; }
  .section-head { gap: 1.2rem; margin-bottom: 2.5rem; }
  .section-head .lead { margin-top: 0; }
  .site-header { height: 78px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 32px; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    padding: 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20,48,62,.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding-block: .6rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; }
  .hero { min-height: calc(100svh - 78px); }
  .hero::after { background: linear-gradient(90deg, rgba(10,40,58,.72), rgba(10,48,67,.28)); }
  .hero-media { object-position: 34% center; }
  .hero-inner { padding-block: 3rem 5.8rem; }
  .hero h1 { font-size: clamp(2.2rem, 10.2vw, 2.6rem); }
  .hero-lead { font-size: 1rem; line-height: 1.95; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: .8rem; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-foot { left: 1.5rem; right: 1.5rem; font-size: .62rem; letter-spacing: .04em; }
  .hero-foot a { font-size: .72rem; }
  .page-hero { padding-block: 4.5rem; }
  .page-hero h1 { font-size: 2.35rem; line-height: 1.6; }
  .page-hero .lead { font-size: 1rem; }
  .service-grid { gap: 2.5rem; }
  .service-band { gap: 1rem; margin-top: 3rem; }
  .service-band .text-link { justify-self: start; }
  .works-list { gap: 4rem; }
  .work:nth-child(even) .work-media { order: 0; }
  .demo-grid { gap: 2.5rem; }
  .demo-footer { display: block; }
  .demo-footer .text-link { margin-top: 1.2rem; }
  .compare-card { padding: 1.8rem; }
  .flow { grid-template-columns: 1fr; gap: 1.6rem; }
  .contact-aside { position: static; }
  .contact-form { padding: 1.5rem; }
  .footer-top, .footer-bottom { display: block; }
  .footer-nav { margin-top: 2rem; grid-template-columns: 1fr 1fr; }
  .footer-bottom > * { display: block; margin-top: .7rem; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 2.5rem); }
  .brand { font-size: 1.1rem; }
  .hero h1 { font-size: 2.05rem; }
  .page-hero h1 { font-size: 2.05rem; }
  h2 { font-size: 2rem; }
}

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