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

:root {
  /* junbicho Cream Coral palette */
  --bg: #FFFCF9;
  --bg-soft: #FFF8F2;
  --white: #FFFFFF;
  --sub: #FDDCC5;
  --main: #EDA87C;
  --accent: #C67B55;
  --accent-dark: #8B5A3A;

  /* Text */
  --text: #4A3020;
  --text-sec: #8B7B70;
  --text-ter: #B5A89E;

  /* Border */
  --border: #F0E8E2;
  --border-light: #F5EDE7;

  /* Semantic */
  --info-bg: #EEF6FF;
  --info: #7CAFC4;
  --warning-bg: #FFF3E0;
  --warning: #E8A040;
}

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

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

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

/* ── Language Switcher ── */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 12px;
}

.lang-switch a {
  font-size: 12px;
  color: var(--text-sec);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.lang-switch a:hover {
  border-color: var(--main);
  color: var(--accent);
}

.lang-switch a.active {
  background: var(--main);
  color: var(--white);
  border-color: var(--main);
}

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

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

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

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

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

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

.toc__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sec);
  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-sec);
  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(--accent);
  font-weight: 500;
  margin-right: 2px;
}

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

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

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

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

.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(--bg-soft);
  color: var(--text);
  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);
  min-width: 120px;
}

/* ── Info Box ── */
.info-box {
  background: var(--info-bg);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.8;
}

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

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

.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);
  line-height: 1.8;
}

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

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

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

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

.footer__nav {
  margin-bottom: 12px;
}

.footer__nav a {
  margin: 0 8px;
}

.footer__nav a:hover {
  text-decoration: underline;
}

/* ── 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;
  }
}
