:root {
  --primary: #a83228;
  --secondary: #c5a35e;
  --surface: #fffefa;
  --line: #06c755;
  --ink: #2c2723;
  --muted: #6c625b;
  --border: #e5ddd2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
}

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

.site-header,
.site-footer,
main {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--border);
}

.brand img {
  display: block;
  width: min(100%, 290px);
  height: auto;
}

.header-actions,
.cta-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.line-button,
.primary-button {
  display: inline-block;
  padding: 10px 18px;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.line-button {
  background: var(--line);
}

.primary-button {
  background: var(--primary);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-article,
.blog-index {
  max-width: 760px;
  margin: 0 auto 64px;
}

h1,
h2,
h3 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  line-height: 1.45;
}

h1 {
  margin-block: 8px 18px;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

h2 {
  margin-top: 42px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.article-category,
.article-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.certificate-placeholder {
  display: grid;
  min-height: 280px;
  margin: 32px 0;
  place-items: center;
  border: 2px dashed var(--secondary);
  background: #f8f2e7;
  color: var(--muted);
  text-align: center;
}

.article-cta,
.limited-exemption,
.ameblo-link {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  background: #fff;
}

.article-cta h2,
.limited-exemption h2,
.ameblo-link h2 {
  margin-top: 0;
}

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

.article-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.article-card h3 {
  margin: 4px 0;
  font-size: 1.25rem;
}

.article-card p {
  margin: 6px 0;
}

.site-footer {
  padding-block: 28px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .certificate-placeholder {
    min-height: 210px;
  }
}
