:root {
  color-scheme: light;
  --ink: #161c28;
  --night: #11151d;
  --paper: #f7f6f2;
  --yellow: #feca04;
  --muted: #505d70;
  --on-dark: #cbd2de;
  --rule: #dedfdf;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #245abc; outline-offset: 3px; }
.dark a:focus-visible { outline-color: #ffdf76; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(100% - 112px, 1280px); margin-inline: auto; }
.dark { color: #f9fafc; background: var(--night); }
.paper { background: var(--paper); }

.skip {
  position: absolute;
  z-index: 2;
  inset: 8px auto auto 8px;
  padding: 12px;
  translate: 0 -150%;
  background: var(--yellow);
  color: var(--ink);
}
.skip:focus { translate: 0; }

.site-header { border-bottom: 1px solid #343d4b; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 79px;
}
.brand { width: 196px; flex-shrink: 1; }
.nav, .actions, .site-footer nav { display: flex; align-items: center; gap: 30px; }
.nav { flex-shrink: 0; font-weight: 700; }
.nav a, .site-footer nav a, .secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav a { white-space: nowrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: .6em 2em;
  border-radius: 8px;
  color: #151400;
  background: var(--yellow);
  font-size: 1.125rem;
  font-weight: 750;
  text-align: center;
}
.button:hover { background: #ffda41; text-decoration: none; }
.button-small { min-height: 48px; padding-inline: 1.15em; }
.secondary { gap: .4em; font-weight: 700; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(22px, 3.4vw, 50px);
  padding-block: 58px 92px;
}
.eyebrow {
  color: #715500;
  font-size: 1rem;
  font-weight: 750;
}
.dark .eyebrow { color: var(--yellow); }
h1 {
  margin-top: 17px;
  font-size: clamp(2rem, 3.78vw, 3.5rem);
  line-height: 1.36;
  letter-spacing: -.04em;
}
h1 span { display: block; }
.hero-description {
  max-width: 24em;
  margin-top: 24px;
  color: var(--on-dark);
  font-size: clamp(1rem, 1.58vw, 1.375rem);
}
.hero-actions { flex-wrap: wrap; gap: 10px 24px; margin-top: 29px; }
.hero-note, .closing-note {
  margin-top: 16px;
  color: var(--on-dark);
  font-size: .9rem;
}
.hero-note span { display: block; }

.hero-figure {
  align-self: center;
  padding: clamp(12px, 2vw, 28px);
  border-radius: 22px;
  background: #1c2430;
}
.hero-caption { color: var(--on-dark); font-weight: 700; }
.hero-screens {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 10px;
}
.hero-phone { margin-top: 74%; }
.hero-screens a, .screen a { display: block; border-radius: 9px; }
.hero-screens img, .screen img {
  width: 100%;
  border: 1px solid #455065;
  border-radius: inherit;
}
figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: .9rem;
}
.dark figcaption { color: var(--on-dark); }

.section { padding-block: clamp(46px, 4.8vw, 72px); }
.section-intro { max-width: 1200px; }
h2 {
  margin-top: 9px;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.38;
  letter-spacing: -.025em;
}
.section-description {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1rem, 1.53vw, 1.375rem);
}
.dark .section-description { color: var(--on-dark); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.steps li { padding: 15px 18px 21px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.steps span { color: #795900; font-size: 1.15rem; font-weight: 750; }
.steps h3 { margin-top: 3px; font-size: clamp(1rem, 1.65vw, 1.5rem); line-height: 1.4; }
.steps p { margin-top: 8px; color: var(--muted); font-size: clamp(.85rem, 1.18vw, 1rem); }

.staff-gallery, .operations-gallery, .assignment-gallery, .monthly-gallery {
  display: grid;
  align-items: start;
  margin-top: 40px;
  gap: 28px;
}
.staff-gallery { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 6vw, 88px); }
.staff-gallery .photo { margin-top: 14px; }
.photo img { width: 100%; border-radius: 12px; }
.staff-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 4vw, 65px); max-width: 600px; }
.operations-gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 32%); gap: clamp(22px, 6vw, 95px); }
.dispatch { width: min(100%, 258px); justify-self: center; }
.assignment-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  grid-template-areas:
    "assignments assignments assignments messages"
    "assignments assignments assignments sites"
    "workers reviews wizards .";
  column-gap: clamp(20px, 3.4vw, 50px);
  row-gap: 16px;
  padding-right: 3%;
}
.assignments { grid-area: assignments; }
.messages { grid-area: messages; }
.sites { grid-area: sites; }
.workers { grid-area: workers; }
.site-reviews { grid-area: reviews; }
.wizards { grid-area: wizards; }

.monthly-gallery { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(24px, 3.8vw, 55px); }
.monthly-note { margin-top: 17px; color: var(--on-dark); font-size: 1rem; }
.section[aria-labelledby="privacy-title"] { padding-bottom: clamp(60px, 6.5vw, 94px); }
.plan-table {
  width: min(100%, 840px);
  margin-top: 24px;
  border-collapse: collapse;
  font-size: clamp(.875rem, 2.8vw, 1.075rem);
}
.plan-table th, .plan-table td {
  padding: .8em clamp(.4rem, 1.6vw, 1.25rem);
  border-bottom: 1px solid var(--rule);
  text-align: start;
}
.plan-table thead { background: var(--paper); }
.plan-table tr > :last-child { text-align: end; }
.plan-table td { white-space: nowrap; }
.plan-table tbody td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-conditions { margin-top: 8px; text-decoration: underline; text-underline-offset: .25em; }
.trial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px clamp(24px, 5vw, 72px);
  margin-top: clamp(24px, 4vw, 48px);
}
.trial h3 { font-size: clamp(1.15rem, 2.2vw, 1.75rem); line-height: 1.45; }
.trial-actions { min-width: 280px; flex-direction: column; align-items: stretch; text-align: center; gap: 8px; }
.trial-note { max-width: 280px; margin-inline: auto; color: var(--muted); font-size: .85rem; }
.closing { padding-block: 32px 20px; text-align: center; }
.closing h2 { margin-top: 0; font-size: clamp(1.5rem, 2.45vw, 2.2rem); }
.closing .button { margin-top: 21px; min-width: min(280px, 100%); }

.footer-inner { border-top: 1px solid #343d4b; min-height: 63px; }
.footer-identity { padding-block: 8px; color: var(--on-dark); font-size: .875rem; }
.footer-identity .brand { display: block; width: 145px; }
.site-footer nav { flex-wrap: wrap; gap: 0 25px; font-size: .92rem; color: var(--on-dark); }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .hero-inner { gap: 23px; }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 72px; }
  .brand { width: 150px; }
  .nav { gap: clamp(12px, 4.7vw, 26px); }
  .nav .nav-section { display: none; }
  .button-small { min-height: 44px; padding-inline: .62em; font-size: 1.06rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 25px 24px; }
  .hero-copy, .hero-figure { width: min(100%, 620px); margin-inline: auto; }
  .hero-figure { border-radius: 15px; }
  h1 { font-size: clamp(1.65rem, 7.25vw, 2.5rem); line-height: 1.34; }
  .hero-description { max-width: none; margin-top: 18px; }
  .hero-actions { display: block; margin-top: 36px; }
  .hero-actions .button, .closing .button { width: 100%; }
  .hero-actions .secondary { display: none; }
  .hero-note { margin-top: 10px; text-align: center; }
  .hero-note span { display: inline; }
  .hero-note span + span::before { content: "・"; }
  .section { padding-block: 33px 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .steps li { padding: 11px 12px 14px; border-radius: 8px; }
  .steps span { font-size: .95rem; }
  .steps p { margin-top: 5px; }
  .staff-gallery, .operations-gallery, .monthly-gallery { grid-template-columns: 1fr; }
  .staff-gallery, .operations-gallery, .assignment-gallery, .monthly-gallery { margin-top: 26px; gap: 17px; }
  .staff-gallery .photo { margin-top: 0; }
  .staff-screens { max-width: none; }
  .dispatch { width: min(53%, 258px); }
  .assignment-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "assignments assignments"
      "messages messages"
      "sites workers"
      "reviews wizards";
    padding-right: 0;
  }
  .trial { grid-template-columns: 1fr; gap: 21px; }
  .trial-actions { min-width: 0; }
  .closing { text-align: left; }
  .closing-note { text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 12px 15px; }
  .footer-inner .brand { width: 137px; }
  .site-footer nav { gap: 0 16px; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  .brand { width: 130px; }
  .eyebrow, .hero-caption { font-size: .85rem; }
  figcaption, .hero-note, .closing-note { font-size: .81rem; }
}
