:root {
  --bg: #f3f2ea;
  --panel: #fffdf7;
  --text: #1c1c17;
  --muted: #686355;
  --line: #d7d1c2;
  --accent: #1f6f5f;
  font-family: "Avenir Next", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1rem, calc((100vw - 980px) / 2));
  border-bottom: 1px solid rgba(104, 99, 85, 0.18);
  background: rgba(243, 242, 234, 0.94);
  backdrop-filter: blur(8px);
}

.brand,
.site-header nav,
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-weight: 700;
}

.brand img {
  border-radius: 8px;
}

.site-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
}

.site-header nav a.active {
  color: var(--accent);
  font-weight: 700;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.content {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.guide-hero {
  display: flex;
  justify-content: center;
  margin: 0.4rem 0 1.2rem;
}

.guide-hero img {
  width: 6rem;
  height: 6rem;
  border: none;
  border-radius: 8px;
  box-shadow: none;
}

.content h1 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 2rem;
}

.content h2 {
  margin: 2.2rem 0 0.8rem;
  padding-top: 0.3rem;
  font-size: 1.35rem;
}

.content p,
.content li {
  line-height: 1.75;
}

.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.1rem auto 1.6rem;
  border: 1px solid rgba(104, 99, 85, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(38, 35, 28, 0.08);
}

.content code {
  border-radius: 6px;
  background: rgba(31, 111, 95, 0.08);
  padding: 0.1rem 0.28rem;
}

.content pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid rgba(104, 99, 85, 0.16);
  border-radius: 8px;
  background: var(--panel);
}

.content pre code {
  background: transparent;
  padding: 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 1.4rem 1rem 2rem;
  border-top: 1px solid rgba(104, 99, 85, 0.16);
}
