/* こかげ Duo マニュアル — 最小・読みやすい日本語向けスタイル */
:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d6;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --warn: #9a3412;
  --warn-soft: #ffedd5;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(28 25 23 / 6%), 0 8px 24px rgb(28 25 23 / 6%);
  --max: 44rem;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #d8f3ef 0%, transparent 55%),
    radial-gradient(900px 360px at 100% 0%, #fde68a55 0%, transparent 50%),
    var(--bg);
  min-height: 100dvh;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #115e59; }

.wrap {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgb(247 244 239 / 88%);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}
.brand strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand span { font-size: 0.8rem; color: var(--muted); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent);
}

main { padding: 1.75rem 0 3rem; }

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.hero p { margin: 0; color: var(--muted); max-width: var(--max); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #115e59;
  border: 1px solid #99f6e4;
}
.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #fdba74;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.4;
}
.card h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
}
.card p,
.card li { color: var(--ink); }
.card p { margin: 0 0 0.75rem; max-width: var(--max); }
.card ul,
.card ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.card li { margin-bottom: 0.35rem; }
.card li:last-child { margin-bottom: 0; }

.callout {
  border-left: 4px solid var(--accent);
  background: #f0fdfa;
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0.85rem 0;
}
.callout.warn {
  border-left-color: #ea580c;
  background: #fff7ed;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code {
  background: #f5f5f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  word-break: break-all;
}
pre {
  margin: 0.75rem 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: #1c1917;
  color: #fafaf9;
  border-radius: 10px;
  line-height: 1.55;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  word-break: normal;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps > li {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 3.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.65rem;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.9rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.3rem;
  accent-color: var(--accent);
}

.grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #115e59; color: white; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: #fafaf9; font-weight: 600; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
