:root {
  color-scheme: light dark;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --ink: #102625;
  --muted: #5e706e;
  --line: #d6e0dc;
  --accent: #087f70;
  --accent-strong: #05685d;
  --accent-soft: #d9f2e9;
  --signal: #74c947;
  --warning: #9a5b08;
  --danger: #b33131;
  --shadow: 0 24px 70px rgba(20, 54, 50, 0.1);
  --radius-large: 30px;
  --radius-medium: 20px;
  --content-width: 1160px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 4%, rgba(100, 201, 165, 0.14), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(8, 127, 112, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(164, 183, 178, 0.45);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 76px;
  margin: 0 auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 8px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper);
}

.brand-mark::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.brand small {
  display: block;
  margin-top: -5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.page-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  min-height: 690px;
  gap: clamp(48px, 8vw, 110px);
  padding: 88px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(116, 201, 71, 0.13);
  content: "";
}

.hero h1,
.page-heading h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.75rem, 6.5vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 37rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.capture-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(144, 174, 166, 0.44);
  border-radius: 38px;
  background: #071716;
  box-shadow: var(--shadow);
  color: #eaf7f2;
  overflow: hidden;
}

.capture-panel::before {
  position: absolute;
  top: -140px;
  right: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(15, 149, 128, 0.22);
  filter: blur(1px);
  content: "";
}

.capture-top,
.capture-status,
.capture-timeline {
  position: relative;
  z-index: 1;
}

.capture-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a9bbb5;
  font-size: 0.82rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7ee2a5;
  font-weight: 700;
}

.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46df7d;
  box-shadow: 0 0 0 5px rgba(70, 223, 125, 0.12);
  content: "";
}

.viewfinder {
  position: relative;
  min-height: 310px;
  margin: 22px 0;
  border: 1px solid rgba(206, 242, 230, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(223, 245, 238, 0.11) 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, rgba(223, 245, 238, 0.11) 50%, transparent 50.3%),
    radial-gradient(circle at 60% 30%, rgba(180, 234, 210, 0.25), transparent 35%),
    linear-gradient(145deg, #123a39, #0b2324 60%, #15322e);
  overflow: hidden;
}

.viewfinder::before,
.viewfinder::after {
  position: absolute;
  content: "";
}

.viewfinder::before {
  right: 13%;
  bottom: -8%;
  width: 42%;
  height: 74%;
  border-radius: 70% 10% 60% 12%;
  background: linear-gradient(155deg, #4bc084, #177260);
  transform: rotate(-13deg);
  opacity: 0.82;
}

.viewfinder::after {
  right: 39%;
  bottom: -16%;
  width: 8px;
  height: 72%;
  border-radius: 8px;
  background: #85d35e;
  transform: rotate(-12deg);
}

.focus-ring {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(237, 255, 246, 0.7);
  border-radius: 16px;
  transform: translate(-50%, -50%);
}

.capture-status {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.capture-status strong {
  display: block;
  font-size: 1.32rem;
}

.capture-status span {
  color: #9dafaa;
  font-size: 0.8rem;
}

.capture-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.capture-timeline i {
  height: 5px;
  border-radius: 999px;
  background: #22413d;
}

.capture-timeline i.done {
  background: #38c98d;
}

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 68px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.info-card,
.faq-list details,
.contact-card,
.document-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(27, 61, 56, 0.045);
}

.feature-card {
  min-height: 250px;
  padding: 30px;
  border-radius: var(--radius-medium);
}

.feature-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.feature-card h3 {
  margin: 42px 0 8px;
  font-size: 1.26rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 34px;
  border-radius: var(--radius-large);
  background: var(--ink);
  color: #edf7f3;
}

.step {
  position: relative;
  padding: 16px 26px;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 32px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #7a9690;
  border-right: 2px solid #7a9690;
  content: "";
  transform: rotate(45deg);
}

.step small {
  color: #73daa7;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.step h3 {
  margin: 8px 0 6px;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: #aebfba;
  font-size: 0.9rem;
}

.notice-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 42px 46px;
  border: 1px solid #bddbcd;
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, #e5f6ee, #f5faf6);
}

.notice-band h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.notice-band p {
  margin: 0;
  color: #48645c;
}

.page-heading {
  max-width: 820px;
  padding: 84px 0 54px;
}

.page-heading h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
}

.page-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.help-layout,
.document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  padding-bottom: 100px;
}

.side-nav {
  position: sticky;
  top: 106px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.side-nav strong {
  display: block;
  padding: 6px 10px 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.side-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.side-nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.content-stack {
  display: grid;
  min-width: 0;
  gap: 28px;
}

.info-card,
.document-card {
  min-width: 0;
  padding: clamp(26px, 5vw, 52px);
  border-radius: var(--radius-large);
  scroll-margin-top: 110px;
}

.info-card h2,
.document-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.info-card h3,
.document-card h3 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
}

.info-card p,
.document-card p {
  color: var(--muted);
}

.info-card li,
.document-card li {
  margin: 7px 0;
}

.info-card > :last-child,
.document-card > :last-child {
  margin-bottom: 0;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 252px));
  justify-content: center;
  gap: 26px;
  margin: 32px 0;
}

.app-screen {
  min-width: 0;
  margin: 0;
}

.app-screen-frame {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 31px;
  background: #101817;
  box-shadow: 0 18px 44px rgba(16, 38, 37, 0.18);
  overflow: hidden;
}

.app-screen img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #f2f2f7;
}

.app-screen figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  color: #214c44;
}

.callout.warning {
  border-left-color: #c98722;
  background: #fff3d8;
  color: #69430c;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout p {
  margin: 0;
  color: inherit;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 16px;
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.definition-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.definition-grid dt,
.definition-grid dd {
  margin: 0;
  padding: 17px 10px;
  border-bottom: 1px solid var(--line);
}

.definition-grid dt {
  font-weight: 720;
}

.definition-grid dd {
  color: var(--muted);
}

.contact-simple {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-bottom: 100px;
}

.contact-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-large);
}

.contact-card > p {
  color: var(--muted);
}

.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
}

.form {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.checkbox-field {
  font-weight: 680;
}

.required {
  color: var(--danger);
  font-size: 0.76rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 14px;
}

.field textarea {
  min-height: 220px;
  padding: 13px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(8, 127, 112, 0.13);
}

.help-text,
.character-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.character-count {
  justify-self: end;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.92rem;
}

.checkbox-field input {
  width: 19px;
  height: 19px;
  margin-top: 5px;
  accent-color: var(--accent);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice,
.result-message {
  padding: 15px 18px;
  border: 1px solid #e9c77e;
  border-radius: 13px;
  background: #fff6df;
  color: #6d480d;
}

.result-message.success {
  border-color: #a9d8c1;
  background: #e5f7ee;
  color: #245d49;
}

.result-message.error {
  border-color: #e3aaaa;
  background: #fff0f0;
  color: #7e2929;
}

.form .button {
  width: 100%;
}

.contact-help-link {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 120px;
  margin: 0 auto;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .capture-panel {
    width: min(100%, 620px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(2)::after {
    display: none;
  }

}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .page-shell,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .hero {
    gap: 50px;
    padding: 62px 0 74px;
  }

  .viewfinder {
    min-height: 240px;
  }

  .section {
    padding: 72px 0;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -2px;
    transform: rotate(135deg);
  }

  .notice-band {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .help-layout,
  .document-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .side-nav {
    position: static;
  }

  .definition-grid {
    grid-template-columns: 1fr;
  }

  .definition-grid dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .definition-grid dd {
    padding-top: 4px;
  }

  .screenshot-gallery {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-auto-columns: minmax(220px, 72vw);
    grid-template-columns: none;
    grid-auto-flow: column;
    justify-content: start;
    gap: 16px;
    margin: 32px 0;
    padding: 2px 0 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .app-screen {
    scroll-snap-align: center;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1414;
    --surface: #111d1c;
    --surface-soft: #172523;
    --ink: #edf5f2;
    --muted: #a4b5b1;
    --line: #2c3c39;
    --accent: #4bc6ad;
    --accent-strong: #7dddd0;
    --accent-soft: #143c35;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  }

  .brand-mark {
    box-shadow: inset 0 0 0 3px var(--paper);
  }

  .notice-band {
    border-color: #31594d;
    background: linear-gradient(135deg, #12362f, #152622);
  }

  .notice-band p {
    color: #b8cec7;
  }

  .callout.warning,
  .notice {
    background: #392b14;
    color: #f0cf94;
  }

  .field input,
  .field select,
  .field textarea {
    background: #0e1817;
  }
}

@media print {
  .site-header,
  .site-footer,
  .side-nav,
  .button-row {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-shell {
    width: 100%;
  }

  .document-layout {
    display: block;
  }

  .document-card {
    border: 0;
    box-shadow: none;
  }
}
