/* Tenmeel — Tailwind（tw.css。作り方は build/README.md）の上に重ねる最小限の共通スタイル */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}

/* 英数字の見出し（Tenmeel のロゴ・数字） */
.font-display { font-feature-settings: "palt"; letter-spacing: -0.01em; }

/* 未確定の箇所（公開前にすべて解消する） */
.todo {
  background: #fef3c7;
  outline: 1px dashed #d97706;
  border-radius: 4px;
  padding: 0 0.3em;
}

/* 文書ページ（プライバシーポリシー）の本文 */
.doc { line-height: 1.95; color: #334155; }
.doc h1 { color: #0f172a; }
.doc h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}
.doc h3 { margin: 1.75rem 0 0.5rem; font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.doc p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.doc ul { margin: 0 0 1rem; padding-left: 1.3em; list-style: disc; }
.doc ul ul { margin-top: 0.4rem; list-style: circle; }
.doc li { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.doc strong { color: #0f172a; }
.doc a { color: #4f46e5; text-decoration: underline; text-underline-offset: 0.2em; }
.doc a:hover { color: #4338ca; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #eef2ff;
  color: #4338ca;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.doc .key-points {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 1rem;
}
.doc .key-points li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
.doc .key-points li:last-child { margin-bottom: 0; }
.doc .key-points li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #059669;
  border-bottom: 2px solid #059669;
  transform: rotate(-45deg);
}

.doc .table-scroll {
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
  border: 1px solid rgb(226 232 240 / 0.8);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.doc table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.doc th, .doc td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.doc th { background: #f8fafc; color: #475569; font-weight: 700; white-space: nowrap; font-size: 0.85rem; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { min-width: 11em; color: #0f172a; font-weight: 500; }

@media (max-width: 520px) {
  .doc .table-scroll { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    margin-bottom: 0.65rem;
    background: #fff;
    overflow: hidden;
  }
  .doc td { border-bottom: 0; padding: 0.65rem 0.9rem; }
  .doc td:first-child { min-width: 0; background: #f8fafc; font-weight: 700; }
}
