:root {
  color-scheme: light;
  --bg: #faf8f2;
  --surface: #ffffff;
  --text: #233d36;
  --muted: #5c6a61;
  --line: #dfe6dc;
  --accent: #4f7d6b;
  --accent-strong: #315f50;
  --accent-soft: #edf3ec;
  --warning: #7a4c00;
  --warning-bg: #fff4d8;
  --focus: #005fcc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

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

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

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.header-inner,
.page,
.site-footer-inner {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #315f50;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.page {
  padding-block: 52px 72px;
}

.document-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.45;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
}

h2 {
  margin: 48px 0 14px;
  padding-top: 4px;
  font-size: 24px;
}

h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

p,
ul,
ol,
dl {
  margin-block: 10px;
}

ul,
ol {
  padding-left: 1.5em;
}

li + li {
  margin-top: 8px;
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #34483f;
  font-size: 18px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
}

.notice.warning {
  border-left-color: var(--warning);
  background: var(--warning-bg);
  color: #4d350d;
}

.legal-section {
  scroll-margin-top: 24px;
}

.table-wrap {
  margin-block: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf3ec;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.link-item {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.link-item h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 19px;
}

.link-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.contact-block {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}


/* Product page (index.html) */
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.35;
}

.hero-screen {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(35, 61, 54, 0.14);
}

.platforms {
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li,
.feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.steps li + li {
  margin-top: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.steps h3,
.feature h3,
.link-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.steps p,
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.screens {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.screens img {
  width: min(44%, 240px);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(35, 61, 54, 0.14);
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-screen {
    width: min(70%, 260px);
    justify-self: center;
  }

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

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page {
    padding-block: 36px 56px;
  }

  h2 {
    margin-top: 38px;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media print {
  body {
    background: #ffffff;
    font-size: 11pt;
  }

  .site-nav,
  .site-footer,
  .action-link {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
