/* ブログ共通：SEO/LLM/AEO を意識した読みやすい構成 */
:root {
  --blog-bg: #f8f4ee;
  --blog-text: #1c1c1c;
  --blog-muted: #5c5c5c;
  --blog-accent: #b8823c;
  --blog-accent-light: #e8dcc8;
  --blog-border: #e0d8cc;
  --blog-content-width: 720px;
  --blog-reading-width: 42em;
  --blog-card-radius: 12px;
  --blog-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
body.blog-body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "メイリオ", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--blog-text);
  background: var(--blog-bg);
}

.blog-back {
  display: inline-block;
  margin: 12px 16px;
  font-size: 14px;
  color: var(--blog-accent);
  text-decoration: none;
  padding: 4px 0;
}
.blog-back:hover { text-decoration: underline; }
.blog-back:focus-visible { outline: 2px solid var(--blog-accent); outline-offset: 2px; }

.blog-header {
  background: linear-gradient(180deg, #fff 0%, #fdfbf8 100%);
  border-bottom: 2px solid var(--blog-accent);
  padding: 28px 16px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.blog-header-inner {
  max-width: var(--blog-content-width);
  margin: 0 auto;
}
.blog-site-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.blog-site-desc {
  margin: 0;
  font-size: 14px;
  color: var(--blog-muted);
  line-height: 1.6;
}

.blog-main {
  max-width: var(--blog-content-width);
  margin: 0 auto;
  padding: 28px 25px 56px;
}

.blog-breadcrumb {
  margin-bottom: 28px;
  font-size: 13px;
}

.blog-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.blog-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--blog-muted);
}
.blog-breadcrumb a { color: var(--blog-accent); }
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb [aria-current="page"] { color: var(--blog-muted); }

/* 一覧：カードスタイル */
.blog-list-title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: bold;
  color: var(--blog-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blog-accent);
}

.blog-list-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}
.blog-list-item {
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: none;
}
.blog-list-item article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--blog-card-radius);
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
  padding: 0;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-list-item article:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--blog-accent-light);
}

.blog-list-item-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--blog-border);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.blog-list-item-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}

.blog-list-item time {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--blog-accent);
  padding: 4px 10px;
  border-radius: 6px;
  margin: 16px 22px 12px 22px;
  width: fit-content;
}
.blog-list-item-title,
.blog-list-item-desc,
.blog-list-item-more {
  padding-left: 22px;
  padding-right: 22px;
}
.blog-list-item-title {
  margin-top: 0;
}
.blog-list-item-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.45;
}
.blog-list-item-title a {
  color: var(--blog-text);
  text-decoration: none;
}
.blog-list-item-title a:hover {
  color: var(--blog-accent);
  text-decoration: underline;
}
.blog-list-item-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--blog-muted);
  line-height: 1.7;
}
.blog-list-item-more {
  margin: 0 0 0;
  padding-bottom: 22px;
  font-size: 13px;
  font-weight: bold;
  color: var(--blog-accent);
}
.blog-list-item-more::after {
  content: " →";
}

.blog-cta {
  margin-top: 40px;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--blog-card-radius);
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
  text-align: center;
}
.blog-cta p { margin: 0 0 16px; font-size: 15px; color: var(--blog-text); }
.blog-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--blog-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  transition: opacity 0.2s ease;
}
.blog-cta-btn:hover { opacity: 0.9; text-decoration: none; color: #fff; }
.blog-cta-btn:focus-visible { outline: 2px solid var(--blog-text); outline-offset: 2px; }

.blog-footer {
  margin-top: 40px;
  padding: 28px 16px 24px;
  border-top: 1px solid var(--blog-border);
  font-size: 13px;
  color: var(--blog-muted);
  text-align: center;
  background: #fff;
}
.blog-footer a { color: var(--blog-accent); }
.blog-footer a:hover { text-decoration: underline; }
.blog-footer-copy { margin-top: 10px; }

/* 記事ページ：ヘッダー・結論・目次 */
.blog-article-header {
  margin-bottom: 1.8em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid var(--blog-border);
}
.blog-article-header time {
  display: inline-block;
  font-size: 13px;
  color: var(--blog-muted);
  background: var(--blog-accent-light);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.blog-article-header h1 {
  margin: 0;
  font-size: 1.65em;
  line-height: 1.45;
  font-weight: bold;
  letter-spacing: 0.02em;
  max-width: var(--blog-reading-width);
}

.blog-article-eyecatch {
  margin: 0 0 1.8em;
  padding: 0;
  max-width: 100%;
  border-radius: var(--blog-card-radius);
  overflow: hidden;
  background: var(--blog-border);
}
.blog-article-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.blog-article .conclusion-box {
  background: linear-gradient(135deg, #fff 0%, #fdfbf7 100%);
  border-radius: var(--blog-card-radius);
  padding: 24px 26px;
  margin-bottom: 2em;
  box-shadow: var(--blog-shadow);
  max-width: var(--blog-reading-width);
  margin-left: auto;
  margin-right: auto;
}
.blog-article .conclusion-box h2 { margin-top: 0; border: none; font-size: 1.4rem; color: var(--blog-accent); font-weight: bold; }
.blog-article .conclusion-box ol { margin: 0.75em 0 0; padding-left: 1.5em; line-height: 1.95; }
.blog-article .conclusion-box li { margin-bottom: 0.65em; }

/* 目次（結論の次：構成ナビとして控えめに差別化） */
.blog-toc {
  background: #faf9f6;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-card-radius);
  padding: 18px 20px 20px;
  margin-bottom: 2em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.blog-toc-title {
  margin: 0 0 4px;
  font-size: 1.4em;
  font-weight: bold;
  color: var(--blog-text);
}
.blog-toc-desc {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--blog-muted);
  line-height: 1.5;
}
.blog-toc-desc + ul { margin-top: 0; }
.blog-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-toc li {
  margin: 0;
  padding: 4px 0;
  border-bottom: 1px dotted var(--blog-border);
}
.blog-toc li:last-child { border-bottom: none; }
.blog-toc a {
  display: block;
  font-size: 14px;
  color: var(--blog-text);
  text-decoration: none;
  padding: 6px 0;
  line-height: 1.4;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.blog-toc a:hover {
  color: var(--blog-accent);
  padding-left: 6px;
}
.blog-toc .toc-h3 {
  padding-left: 16px;
  font-size: 13px;
  color: var(--blog-muted);
}
.blog-toc .toc-h3 a:hover { padding-left: 22px; }

/* 記事本文：読みやすさ重視（行長・行間・余白） */
.blog-article .article-body {
  max-width: var(--blog-reading-width);
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--blog-text);
}
.blog-article .article-body h2 {
  margin: 2.4em 0 0.6em;
  font-size: 1.35em;
  line-height: 1.45;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blog-border);
  font-weight: bold;
  scroll-margin-top: 24px;
}
.blog-article .article-body h2:first-of-type { margin-top: 1.4em; }

/* ステップ番号：HPの茶系で円形ナンバー */
.blog-article .article-steps {
  counter-reset: step;
}
.blog-article .article-steps h3 {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2em 0 0.5em;
  font-size: 1.15em;
  line-height: 1.5;
  font-weight: bold;
  scroll-margin-top: 24px;
  padding-left: 0;
  border-left: none;
}
.blog-article .article-steps h3::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  min-width: 2em;
  border-radius: 50%;
  background: var(--blog-accent);
  color: #fff;
  font-weight: bold;
  font-size: 1em;
  flex-shrink: 0;
}

.blog-article .article-body h3 {
  margin: 2em 0 0.5em;
  font-size: 1.15em;
  line-height: 1.5;
  font-weight: bold;
  scroll-margin-top: 24px;
}
.blog-article .article-body p {
  margin: 0 0 1.35em;
  line-height: 2;
}
.blog-article .article-body ul,
.blog-article .article-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.6em;
  line-height: 2;
}
.blog-article .article-body li {
  margin-bottom: 0.5em;
}
.blog-article .article-body li:last-child {
  margin-bottom: 0;
}
.blog-article .article-body strong {
  color: var(--blog-text);
  font-weight: 700;
}
@media (max-width: 640px) {
  .blog-article .article-body {
    font-size: 16px;
    max-width: 100%;
  }
  .blog-article .article-body h2 { font-size: 1.25em; }
  .blog-article .article-body h3 { font-size: 1.1em; }
}
.blog-article .faq-section { margin-top: 2.5em; }
.blog-article .faq-section h2 { margin-top: 0; }
.blog-article .faq-item {
  margin-bottom: 1.35em;
  background: #faf8f5;
  border-radius: 10px;
  line-height: 1.9;
  overflow: hidden;
}
.blog-article .faq-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: background 0.2s ease;
}
.blog-article .faq-item-toggle:hover {
  background: rgba(184, 130, 60, 0.06);
}
.blog-article .faq-item-toggle:focus-visible {
  outline: 2px solid var(--blog-accent);
  outline-offset: 2px;
}
.blog-article .faq-item-toggle h3 {
  margin: 0;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.45;
  flex: 1;
}
.blog-article .faq-item-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--blog-accent);
  transition: transform 0.25s ease;
}
.blog-article .faq-item-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -5px 0 0 -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.blog-article .faq-item-toggle[aria-expanded="true"] .faq-item-icon {
  transform: rotate(180deg);
}
.blog-article .faq-item-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.blog-article .faq-item.is-open .faq-item-answer {
  max-height: 500px;
}
.blog-article .faq-item-answer p {
  margin: 0;
  padding: 0 20px 18px 20px;
  font-size: 0.95em;
  line-height: 1.95;
}
/* 関連記事 */
.related-posts {
  margin-top: 2.5em;
  padding-top: 1.8em;
  border-top: 1px solid var(--blog-border);
  max-width: var(--blog-reading-width);
  margin-left: auto;
  margin-right: auto;
}
.related-posts-title {
  margin: 0 0 1em;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--blog-text);
}
.related-posts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-posts-item {
  margin: 0 0 0.6em;
  padding: 0;
}
.related-posts-item:last-child {
  margin-bottom: 0;
}
.related-posts-item a {
  display: block;
  padding: 12px 14px;
  background: #faf9f6;
  border-radius: 8px;
  border: 1px solid var(--blog-border);
  text-decoration: none;
  color: var(--blog-text);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.related-posts-item a:hover {
  background: #fff;
  border-color: var(--blog-accent-light);
  text-decoration: none;
  color: var(--blog-text);
}
.related-posts-date {
  display: block;
  font-size: 0.8em;
  color: var(--blog-muted);
  margin-bottom: 4px;
}
.related-posts-label {
  font-size: 0.95em;
  line-height: 1.45;
  font-weight: 500;
}

.blog-article .article-footer-links {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--blog-border);
  font-size: 14px;
}
.blog-article .article-footer-links a { color: var(--blog-accent); }
.blog-article .article-footer-links a:hover { text-decoration: underline; }
.blog-article .article-footer-links a:focus-visible { outline: 2px solid var(--blog-accent); outline-offset: 2px; }
