:root {
  --bg: #FAFAF8;
  --surface: #F1F1EE;
  --text-primary: #2A2A28;
  --text-secondary: #767672;
  --text-muted: #9A9A96;
  --border: #E4E3DF;
  --accent: #5A6B5C;
  --font-sans: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-mono: "SFMono-Regular", "Consolas", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 16px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono);
}

/* header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  font-size: 13px;
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--text-primary);
}

/* hero */

.hero {
  padding: 48px 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 14px;
}

.lead {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0;
}

/* status panel */

.status-panel {
  background: var(--surface);
  border-radius: 8px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.status-value {
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}

/* section labels */

.section-label {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* flow */

.flow {
  margin-bottom: 48px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.flow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.flow-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
}

.flow-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

/* articles */

.articles {
  margin-bottom: 48px;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.article-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.article-list a {
  font-size: 14px;
}

.article-list a:hover {
  color: var(--accent);
}

.article-list time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 16px;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 32px;
}

.site-footer p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  margin-top: 8px !important;
}

.footer-links a {
  margin-right: 16px;
  color: var(--text-secondary) !important;
}

.footer-links a:hover {
  color: var(--accent) !important;
}

/* single post */

.post {
  padding: 48px 0;
}

.post-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
  margin: 8px 0 12px;
}

.post-date {
  font-size: 12px;
  color: var(--text-muted);
}

.post-body {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.9;
}

.post-body h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 40px 0 12px;
}

.post-body h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 28px 0 8px;
}

.post-body p {
  margin: 0 0 16px;
  color: var(--text-primary);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-body pre {
  background: var(--text-primary);
  color: var(--bg);
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 20px;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}

.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.post-body th {
  background: var(--surface);
  font-weight: 500;
  color: var(--text-primary);
}

.post-body td {
  color: var(--text-secondary);
}

/* responsive */

@media (max-width: 600px) {
  .status-panel,
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ===== トップページ(初心者向け) ===== */

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  max-width: none;
}

.start-card {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 8px 0 48px;
  transition: background 0.2s;
}

.start-card:hover {
  background: #4B5A4D;
}

.start-label {
  grid-column: 1;
  font-size: 12px;
  opacity: 0.85;
}

.start-title {
  grid-column: 1;
  font-size: 19px;
  font-weight: 600;
  margin: 2px 0 4px;
}

.start-desc {
  grid-column: 1;
  font-size: 13px;
  opacity: 0.9;
}

.start-arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  font-size: 26px;
}

.steps {
  margin-bottom: 24px;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: 16px;
  padding-bottom: 26px;
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 2px;
  width: 1px;
  background: var(--border);
}

.step:last-child::before {
  display: none;
}

.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
}

.step-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0 2px;
}

.step-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.step-links a {
  display: inline-block;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  margin: 8px 6px 0 0;
}

.step-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.help {
  margin: 0 0 48px;
  font-size: 13px;
}

.help a {
  color: var(--accent);
  text-decoration: underline;
}

/* 記事内の「詳しい説明はこちら」などの囲み */

.post-body blockquote {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
  margin: 0 0 8px;
}

.post-body blockquote ul {
  margin: 0;
  padding-left: 20px;
}

.hero .lead {
  max-width: 560px;
}

.hero-accent {
  display: block;
  color: var(--accent);
}

.hero-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-points li {
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px 10px 36px;
  position: relative;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 600px) {
  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 24px;
  }

  /* スマホでメニューの文字が縦に折れるのを防ぐ */
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav a {
    white-space: nowrap;
  }
}

/* 記事内の画像 */

.post-figure {
  margin: 20px 0 28px;
}

.post-figure img,
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.post-figure a {
  display: block;
  cursor: zoom-in;
}

.post-figure figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

/* 広告を含む記事の表示(front matterに pr = true) */

.pr-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 16px 0 24px;
}

.pr-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--text-secondary);
  border-radius: 4px;
  padding: 2px 8px;
}

/* 商品リンクのボタン */

.post-body .aff-link {
  margin: 16px 0 28px;
}

.post-body .aff-link a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  padding: 12px 22px;
}

.post-body .aff-link a:hover {
  background: #4B5A4D;
}

.post-body .aff-link img {
  display: inline;
  border: 0;
}

.post-updated {
  margin-left: 8px;
}

.post-body .aff-banner {
  margin: 24px 0 32px;
  text-align: center;
}

.post-body .aff-banner img {
  max-width: 100%;
  height: auto;
  border: 0;
}
