/* ツバキリ商会 Claude Code 案内所 */
:root {
  --bg: #faf9f6;
  --bg2: #f0eee8;
  --text: #23211e;
  --muted: #6b675f;
  --accent: #a03232;
  --accent-soft: #f3e2e0;
  --border: #ddd8cf;
  --code-bg: #23211e;
  --code-text: #e8e6e1;
  --ok: #2c6e49;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171613;
    --bg2: #211f1b;
    --text: #e8e6e1;
    --muted: #a29c92;
    --accent: #e07a6a;
    --accent-soft: #3a2523;
    --border: #3a372f;
    --code-bg: #0e0d0b;
    --code-text: #e8e6e1;
    --ok: #7fbf9b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  font-size: 16px;
  overflow-wrap: anywhere;
}

header.site {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 10px;
}
header.site .brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}
header.site .brand span { color: var(--accent); }
nav.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
nav.chips a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
}
nav.chips a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
h1 { font-size: 1.5rem; line-height: 1.4; margin: 0.4em 0; }
h2 { font-size: 1.2rem; margin-top: 2em; border-left: 4px solid var(--accent); padding-left: 10px; line-height: 1.4; }
h3 { font-size: 1.02rem; margin-top: 1.6em; }
a { color: var(--accent); }
p.lead { color: var(--muted); }

section {
  margin-bottom: 1.5em;
}

.note {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
}
.warn {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 44px;
  margin-bottom: 1.4em;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.codeblock {
  position: relative;
  margin: 0.8em 0;
}
.codeblock pre {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 10px;
  padding: 14px;
  padding-top: 38px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
}
.codeblock code { font-family: "SF Mono", Menlo, Consolas, monospace; }
.codeblock .filename {
  position: absolute;
  top: 8px; left: 12px;
  font-size: 0.75rem;
  color: #9d988e;
  font-family: "SF Mono", Menlo, monospace;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.copy {
  position: absolute;
  top: 6px; right: 8px;
  border: 1px solid #55524a;
  background: transparent;
  color: #c9c4ba;
  border-radius: 6px;
  padding: 2px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}
button.copy:active { transform: scale(0.97); }
button.copy.done { color: var(--ok); border-color: var(--ok); }

code.inline {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.85em;
  font-family: "SF Mono", Menlo, monospace;
}

.sources {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 4px;
  margin-top: 0.8em;
}
.sources a { color: var(--muted); }

.table-scroll { overflow-x: auto; }
table {
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}
th, td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--bg2); }

.news-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--bg2);
}
.news-item h3 { margin: 0 0 4px; }
.news-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 6px;
  font-size: 0.75rem;
}
.badge.fact { border-color: var(--ok); color: var(--ok); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 20px 16px 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
