@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg-cream: #FBF7F2;
  --bg-white: #FFFFFF;
  --terracotta: #D4745B;
  --terracotta-light: #F5E6E0;
  --sage: #6B8F71;
  --sage-light: #E8F0E9;
  --text-primary: #3C3C3C;
  --text-secondary: #6B6B6B;
  --text-muted: #9B9B9B;
  --border-light: #E8E2DA;
  --border: #D6CFC6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.9;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Header ── */
.header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.header__app-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.header__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.header__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.header__meta span + span::before {
  content: "｜";
  margin: 0 6px;
}

/* ── Table of Contents ── */
.toc {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.toc__list {
  list-style: none;
  counter-reset: toc-counter;
}

.toc__list li {
  counter-increment: toc-counter;
  margin-bottom: 4px;
}

.toc__list li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

.toc__list li a::before {
  content: counter(toc-counter) ". ";
  color: var(--terracotta);
  font-weight: 500;
  margin-right: 2px;
}

.toc__list li a:hover {
  color: var(--terracotta);
}

/* ── Sections ── */
.section {
  margin-bottom: 44px;
}

.section__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 14px;
  border-left: 3px solid var(--terracotta);
  margin-bottom: 18px;
}

.section p {
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section p:last-child {
  margin-bottom: 0;
}

/* ── Data Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}

.data-table thead th {
  background: var(--terracotta-light);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 12.5px;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.data-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.data-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.data-table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

.data-table .label {
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-primary);
  min-width: 120px;
}

/* ── Info Box (注意書き・補足) ── */
.info-box {
  background: var(--sage-light);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.8;
}

.info-box::before {
  content: "💡 ";
}

.info-box--warning {
  background: var(--terracotta-light);
}

.info-box--warning::before {
  content: "⚠️ ";
}

/* ── Inline List (セクション内の箇条書き) ── */
.section ul {
  margin: 12px 0 14px 0;
  padding-left: 20px;
}

.section ul li {
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.8;
}

.section ul li::marker {
  color: var(--terracotta);
}

/* ── Sub Heading ── */
.sub-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

/* ── Footer ── */
.footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

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

/* ── Responsive ── */
@media (max-width: 480px) {
  .container {
    padding: 28px 18px 60px;
  }

  .header__title {
    font-size: 19px;
  }

  .section__heading {
    font-size: 15px;
  }

  .data-table {
    font-size: 12.5px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 8px 10px;
  }

  .toc {
    padding: 20px 22px;
  }
}
