/* ========== Base ========== */
:root {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --brand: #373737;
  --border: #e5e7eb;
  --surface: #f9fafb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Noto Sans JP, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.8;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding: 0 16px;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
}

.header-inner {
  display: flex;
  align-items: center;
  text-align: center;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  text-decoration: none;
}


/* ========== Title ========== */
.page-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 24px 0 4px;
  font-weight: 800;
}

.updated {
  color: var(--muted);
  margin: 0 0 16px;
}

/* ========== Layout ========== */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}



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

.toc nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.toc a {
  display: block;
  text-decoration: none;
  color: var(--fg);
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.toc a:hover,
.toc a:focus {
  outline: none;
  border-color: var(--border);
  background: #fff;
}

.content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.content h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  border-left: 4px solid var(--brand);
  padding-left: 10px;
  margin: 28px 0 12px;
  line-height: 1.3;
}

.content p,
.content li {
  font-size: 16px;
}

.content ul {
  padding-left: 20px;
}

.content section+section {
  margin-top: 8px;
}

.backtop {
  margin-top: 24px;
  text-align: right;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
}

.btn:hover {
  background: var(--surface);
}

.btn-line {
  display: inline-block;
  padding: 10px 280px;
  background: #373737;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin: 5px 0 20px 0;
}

@media (max-width: 600px) {
  .btn-line {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 16px;
  }

  .content {
    padding: 16px;
  }

  .content h2 {
    font-size: 18px;
  }
}


/* ========== Footer ========== */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .toc {
    position: relative;
    top: auto;
  }
}


.info-box {
  margin-top: 30px;
}

table {
  border-collapse: collapse;
  max-width: 900px;
  width: 100%;
}

td {
  font-size: 14px;
}

.td-01 {
  width: 150px;
}

.td-02 {
  width: 350px;
}

th,
td {
  border: 2px solid #ccc;
  padding: 7px;
  text-align: left;
}

/* 横スクロール防止 */
html,
body {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

html,
body {
  background-color: #ffffff !important;
  color: #111827 !important;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}