/* 全ページ共通のスタイル。色・フォントのトークン、ヘッダー、ボタン、フッター、規約ページの本文。
   ページ固有のスタイルは各 HTML の <style> に書く。 */

:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #131816;
  --ink-2: #39443f;
  --muted: #5e6a65;
  --line: #dde4e1;
  --line-soft: #e9eeec;
  --accent: #14796d;
  --accent-soft: #e3f1ec;
  --btn-ink: #ffffff;
  --shadow:
    0 1px 2px rgba(19, 24, 22, 0.04),
    0 12px 32px -18px rgba(19, 24, 22, 0.28);

  --font-jp:
    "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    system-ui, sans-serif;
  --font-en: "IBM Plex Sans", "IBM Plex Sans JP", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1000px;
  --gutter: clamp(20px, 5vw, 56px);

  /* ライト配色のみで統一（ダークモードには追従しません） */
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.mark {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mark .dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 13.5px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.nav a[aria-current="page"] {
  font-weight: 600;
}

/* .nav a より詳細度を上げて、ボタンの文字色を白に保つ */
.nav a.btn,
.nav a.btn:hover {
  color: var(--btn-ink);
}

.nav .nav-link-sm {
  display: none;
}

@media (min-width: 720px) {
  .nav .nav-link-sm {
    display: inline;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--btn-ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 9px 17px;
  font-size: 13.5px;
}

.btn .arrow {
  font-family: var(--font-en);
  font-weight: 400;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 28px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-foot small {
  font-family: var(--font-en);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.site-foot .biz {
  font-size: 12.5px;
  color: var(--muted);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

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

.foot-links a:hover,
.foot-links a[aria-current="page"] {
  color: var(--ink);
}

/* ---------- 規約ページ（利用規約・プライバシーポリシー） ---------- */

.doc {
  padding-block: clamp(40px, 7vw, 72px) clamp(56px, 9vw, 96px);
}

.doc-body {
  max-width: 46em;
}

.doc .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 14px;
}

.doc h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.doc-card {
  margin-top: clamp(28px, 5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}

.doc-card > :first-child {
  margin-top: 0;
}

.doc h2 {
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 600;
  line-height: 1.5;
}

.doc p,
.doc ol,
.doc ul {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
}

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

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--muted);
}

.doc ol ol {
  margin-top: 8px;
  list-style-type: decimal;
}

.doc a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.table-scroll {
  overflow-x: auto;
  margin: 4px 0 18px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.75;
}

.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}

.doc th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.doc td:first-child {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}

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