@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;800&display=swap");

:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --text: #2c2a27;
  --muted: #6f6a62;
  --line: #e4ded3;
  --accent: #2f5d62;
  --accent-soft: #e6efee;
  --accent-deep: #1f4246;
  --shadow: 0 12px 34px rgba(47, 43, 38, 0.05);
  --radius: 22px;
  --max: 960px;
  --chrome-max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 93, 98, 0.10), transparent 34rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

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

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

.site-header {
  border-bottom: 1px solid rgba(228, 222, 211, 0.8);
  background: rgba(251, 248, 242, 0.88);
}

.header-inner,
.footer-inner,
.page {
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header-inner,
.footer-inner {
  max-width: var(--chrome-max);
}

.page {
  max-width: var(--max);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  font-size: 15px;
  font-weight: 800;
}

.global-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.page {
  padding-top: 56px;
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.28;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.4;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.45;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card,
.article-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card {
  display: block;
  padding: 24px;
}

.card h2 {
  font-size: 21px;
}

.card p,
.article-body p,
.meta {
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.article-body {
  padding: 30px;
}

.article-body h2 {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-body ul {
  margin: 0 0 18px;
  padding-left: 1.25em;
  color: var(--muted);
}

.article-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f0ebe2;
  color: var(--accent-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.article-body pre {
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #2c2a27;
  color: #fffdf8;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.button-primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f0ebe2;
}

.footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-inner,
  .page {
    padding-left: 18px;
    padding-right: 18px;
  }
}
