:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --text: #2b2f2e;
  --muted: #6b7270;
  --green: #1f5f4a;
  --green-soft: #e4efe9;
  --mustard: #d9a521;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 32, .06), 0 4px 14px rgba(20, 40, 32, .06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ヘッダー */
.site-header { background: var(--green); color: #fff; }
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-logo { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: .02em; }
.global-nav { display: flex; gap: 6px; }
.global-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .875rem;
  padding: 4px 14px;
  border-radius: 999px;
}
.global-nav a:hover { background: rgba(255, 255, 255, .16); }

.tagline-bar { background: var(--green-soft); text-align: center; padding: 8px 20px; }
.tagline-bar p { margin: 0; font-size: .875rem; color: var(--green); font-weight: 700; }

/* 2カラム */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.main-col { min-width: 0; }

/* TOP */
.home-heading { font-size: 1.5rem; line-height: 1.5; margin: 0 0 4px; }
.home-sub { margin: 0 0 22px; color: var(--muted); font-size: .875rem; }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.post-card-thumb { aspect-ratio: 3 / 2; background: var(--green-soft); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-text { padding: 14px 16px 18px; }
.post-card-title { font-size: 1rem; line-height: 1.6; margin: 6px 0 0; }
.post-card-link:hover .post-card-title { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.post-date { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.post-date-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); }

/* サイドバー */
.sidebar { display: grid; gap: 22px; }
.side-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; font-size: .875rem; }
.side-box p { margin: 0 0 8px; }
.side-box-title { font-size: 1rem; margin: 0 0 12px; padding: 4px 12px; background: var(--green); color: #fff; border-radius: 999px; display: inline-block; }
.side-lead { font-weight: 700; color: var(--green); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-post a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; color: var(--text); text-decoration: none; line-height: 1.5; }
.mini-post img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.mini-post a:hover span { color: var(--green); text-decoration: underline; }

/* パンくず */
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { color: var(--muted); }

/* 記事 */
.entry { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px 36px; }
.entry-eyecatch { margin: -8px -12px 22px; padding: 16px; background: #eef1f0; border-radius: var(--radius); }
.entry-eyecatch img { width: 100%; max-width: 640px; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 auto; border-radius: 8px; }
.entry-title { font-size: 1.625rem; line-height: 1.5; margin: 0 0 8px; }
.entry-meta { margin-bottom: 20px; }

.entry-toc { background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius); padding: 0; margin: 0 0 32px; font-size: .9375rem; }
.entry-toc summary { cursor: pointer; padding: 10px 18px; font-weight: 700; color: var(--green); }
.entry-toc > ul { margin: 0; padding: 0 18px 16px 34px; }
.entry-toc ul ul { padding-left: 20px; margin: 2px 0 6px; font-size: .875rem; }
.entry-toc li { margin: 4px 0; line-height: 1.6; }
.entry-toc li::marker { color: var(--mustard); }
.entry-toc a { color: var(--text); text-decoration: none; }
.entry-toc a:hover { color: var(--green); text-decoration: underline; }

.entry-body h2 { font-size: 1.3125rem; line-height: 1.5; margin: 44px 0 18px; padding: 10px 16px; background: var(--green-soft); border-radius: var(--radius); scroll-margin-top: 16px; }
.entry-body h3 { font-size: 1.0625rem; line-height: 1.6; margin: 30px 0 10px; display: flex; gap: 10px; align-items: baseline; scroll-margin-top: 16px; }
.entry-body h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); transform: translateY(-1px); }
.entry-body p { margin: 0 0 1.2em; }
.entry-body a { word-break: break-all; }
.policy-date { margin-top: 32px; color: var(--muted); text-align: right; }

/* 関連記事 */
.related { margin-top: 32px; }
.related-title, .section-label { font-size: 1.125rem; margin: 0 0 14px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related-item a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.6; }
.related-item img { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; }
.related-item a:hover span { color: var(--green); text-decoration: underline; }

/* 404 */
.not-found { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 24px; text-align: center; margin-bottom: 32px; }
.not-found-code { font-size: 4.5rem; line-height: 1; font-weight: 700; color: var(--green); margin: 0 0 12px; }
.not-found-title { font-size: 1.375rem; margin: 0 0 12px; }
.pill-button { display: inline-block; background: var(--green); color: #fff; padding: 10px 28px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.pill-button:hover { background: #174a39; }

/* フッター */
.site-footer { background: #e6eae8; text-align: center; padding: 22px 20px; font-size: .8125rem; }
.footer-links { display: flex; justify-content: center; gap: 10px; color: var(--muted); }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header-inner { padding: 12px 16px; }
  .site-logo { font-size: 1.0625rem; }
  .page-wrap { padding: 20px 16px 36px; gap: 24px; }
  .home-heading { font-size: 1.25rem; }
  .post-grid, .post-grid-three { grid-template-columns: 1fr; }
  .entry { padding: 20px 16px 28px; }
  .entry-eyecatch { margin: 0 0 18px; padding: 0; background: none; }
  .entry-title { font-size: 1.3125rem; }
  .entry-body h2 { font-size: 1.125rem; padding: 8px 12px; }
  .related-item a { grid-template-columns: 72px 1fr; }
  .related-item img { width: 72px; height: 72px; }
}
