/* blog.css — 不動産反響AIくん ブログ共通スタイル */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: helvetica, arial, YuGothic, 'Yu Gothic', 'Hiragino Kaku Gothic Pro', sans-serif;
  color: #414143;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --primary: #1B9E5A;
  --primary-dark: #157A46;
  --primary-light: #2BBD6E;
  --primary-bg: #F0FBF5;
  --primary-border: #A8E6C3;
}

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  background: #fff;
  z-index: 100;
  height: 90px;
  box-shadow: 0 2px 4px rgba(91,91,95,0.1);
}
.header-inner {
  width: 1400px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 100%;
}
.gnav-btns { margin-left: auto; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 48px;
}
.logo-text {
  font-family: 'Onest', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  line-height: 1;
}
.gnav-links {
  display: flex;
  gap: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #414143;
}
.gnav-links a { transition: color 0.3s; }
.gnav-links a:hover { color: var(--primary); }
.gnav-btns { display: flex; gap: 8px; align-items: center; }

.button_fill_m {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.3s ease-out;
  border: none; cursor: pointer;
}
.button_fill_m:hover { background: var(--primary-dark); }
.button_outline_m {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.3s ease-out;
  cursor: pointer;
}
.button_outline_m:hover { background: var(--primary-bg); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  margin-top: 90px;
  padding: 16px 24px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.breadcrumb-inner {
  width: 800px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  font-size: 13px;
  color: #888;
}
.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ===== Article ===== */
.article {
  width: 800px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.article-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 40px;
}

/* ===== Article Body (.article-body + .post-body) ===== */
.article-body h2, .post-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}
.article-body h3, .post-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2a2a2a;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}
.article-body p, .post-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #414143;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol,
.post-body ul, .post-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-body li, .post-body li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.article-body strong, .post-body strong {
  color: #1a1a1a;
}
.article-body hr, .post-body hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0;
}
.article-body table, .post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}
.article-body table th, .post-body table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--primary-dark);
}
.article-body table td, .post-body table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  vertical-align: top;
}
.article-body table tr:nth-child(even) td,
.post-body table tr:nth-child(even) td {
  background: #f9f9f9;
}
.article-body em, .post-body em {
  font-style: normal;
  color: #888;
  font-size: 14px;
}
.article-body blockquote, .post-body blockquote {
  border-left: 4px solid var(--primary-border);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--primary-bg);
  border-radius: 0 8px 8px 0;
}
.article-body img, .post-body img {
  border-radius: 10px;
  margin: 24px 0;
}

/* ===== CTA Section ===== */
.article-cta {
  margin-top: 64px;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--primary-bg), #e6f7ef);
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--primary-border);
}
.article-cta h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}
.article-cta p {
  font-size: 15px;
  color: #555;
  margin-bottom: 28px;
}
.article-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.article-cta-btns .button_fill_m {
  padding: 16px 36px;
  font-size: 16px;
}
.article-cta-btns .button_outline_m {
  padding: 16px 36px;
  font-size: 16px;
}

/* ===== Footer ===== */
#footer {
  background: #0d4a2d;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 16px;
}
#footer .inner {
  width: 1200px;
  max-width: calc(100vw - 60px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 64px;
}
.footer-brand .logo-footer {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-nav a:hover { color: #fff; }
.footer-btm {
  max-width: calc(100vw - 60px);
  width: 1200px;
  margin: 48px auto 0;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  #header { height: 50px; }
  .header-inner { height: 50px; padding: 0 12px; width: 100%; max-width: 100%; }
  .logo { margin-right: 0; }
  .logo-text { font-size: 13px; }
  .gnav-links { display: none; }
  .gnav-btns { gap: 6px; margin-left: auto; }
  .gnav-btns .button_fill_m { padding: 7px 12px; font-size: 10px; border-radius: 6px; }
  .gnav-btns .button_outline_m { padding: 7px 12px; font-size: 10px; border-radius: 6px; }

  .breadcrumb { margin-top: 50px; padding: 12px 16px; }
  .breadcrumb-inner { font-size: 11px; }

  .article { padding: 32px 16px 60px; }
  .article h1 { font-size: 22px; }
  .article-body h2, .post-body h2 { font-size: 20px; margin-top: 36px; }
  .article-body h3, .post-body h3 { font-size: 17px; margin-top: 28px; }
  .article-body table, .post-body table { font-size: 12px; display: block; overflow-x: auto; }
  .article-body table th, .article-body table td,
  .post-body table th, .post-body table td { padding: 8px 10px; white-space: nowrap; }

  .article-cta { padding: 32px 20px; }
  .article-cta h2 { font-size: 20px; }
  .article-cta-btns { flex-direction: column; }
  .article-cta-btns .button_fill_m,
  .article-cta-btns .button_outline_m { width: 100%; padding: 14px; font-size: 14px; }

  #footer { padding: 20px 0 8px; }
  #footer .inner { display: flex; flex-direction: column; gap: 8px; }
  .footer-brand { margin-bottom: 0; }
  .logo-footer { font-size: 16px; margin-bottom: 2px; }
  .footer-brand p { font-size: 10px; line-height: 1.4; margin-bottom: 0; }
  .footer-title { font-size: 11px; margin-bottom: 2px; }
  .footer-nav li { margin-bottom: 2px; }
  .footer-nav a { font-size: 10px; }
  .footer-btm { width: 100%; max-width: 100%; flex-direction: column; gap: 2px; text-align: center; padding: 8px; margin-top: 8px; }
  .footer-btm span { font-size: 9px; }

  /* BEM mobile */
  .site-header__nav { display: none; }
  .site-header__inner { padding: 10px 14px; gap: 8px; }
  .site-header__cta .btn { padding: 8px 14px; font-size: 11px; }
  .post-wrap { padding: 16px 14px 60px !important; }
  .post-body h1, .post-head h1 { font-size: 22px; }
  .post-body h2 { font-size: 19px; }
  .post-body h3 { font-size: 16px; }
  .post-body table { display: block; overflow-x: auto; }
  .post-cta { padding: 24px 16px; }
  .post-cta__btns { flex-direction: column; }
  .post-cta__btns .btn { width: 100%; }
  .site-footer__inner { flex-direction: column; gap: 16px; }
  .site-footer__nav { margin-left: 0; }
}

/* ========================================================
   BEM class names (articles 20+)
   ======================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.btn--fill { background: var(--brand, var(--primary)); color: #fff; }
.btn--fill:hover { background: var(--brand-dark, var(--primary-dark)); }
.btn--outline { background: #fff; color: var(--brand, var(--primary)); border: 2px solid var(--brand, var(--primary)); }
.btn--outline:hover { background: var(--brand-bg, var(--primary-bg)); }

.site-header {
  position: sticky; top: 0; background: #fff;
  border-bottom: 1px solid #eee; z-index: 50;
}
.site-header__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 32px;
}
.site-header__logo {
  font-weight: 800; font-size: 18px;
  color: var(--brand, var(--primary));
}
.site-header__nav { display: flex; gap: 24px; font-size: 14px; margin-left: 8px; }
.site-header__nav a:hover { color: var(--brand, var(--primary)); }
.site-header__cta { margin-left: auto; display: flex; gap: 8px; }

.crumbs { background: #fafafa; border-bottom: 1px solid #eee; }
.crumbs__inner {
  max-width: 760px; margin: 0 auto;
  padding: 12px 20px; font-size: 12px; color: #888;
}
.crumbs__inner a { color: var(--brand, var(--primary)); }
.crumbs__inner a:hover { text-decoration: underline; }
.crumbs__inner span { margin: 0 6px; color: #bbb; }

.post-head { margin-bottom: 24px; }
.post-head h1 {
  font-size: 32px; font-weight: 800;
  line-height: 1.4; color: #1a1a1a; margin-bottom: 16px;
}
.post-meta {
  font-size: 13px; color: #666;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; margin-top: 12px;
}
.post-meta__dot { color: #ccc; }

.post-toc {
  background: #f7f9fb; border: 1px solid #e4e8ee;
  border-radius: 12px; padding: 20px 24px; margin: 24px 0 40px;
}
.post-toc__title { font-weight: 700; font-size: 14px; color: #333; margin-bottom: 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.post-toc li { font-size: 14px; line-height: 1.8; counter-increment: toc; }
.post-toc li::before { content: counter(toc) ". "; color: #888; margin-right: 4px; }
.post-toc a:hover { color: var(--brand, var(--primary)); text-decoration: underline; }

.post-body ul, .post-body ol { margin: 0 0 20px 24px; }
.post-body li { font-size: 16px; margin-bottom: 6px; }
.post-body strong { color: #1a1a1a; font-weight: 700; }
.post-body hr { border: none; border-top: 1px solid #e4e8ee; margin: 40px 0; }
.post-body h2 {
  font-size: 24px; font-weight: 700; color: #1a1a1a;
  margin-top: 48px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 3px solid var(--brand, var(--primary));
}
.post-body h3 {
  font-size: 20px; font-weight: 700; color: #2a2a2a;
  margin-top: 36px; margin-bottom: 16px;
  padding-left: 16px; border-left: 4px solid var(--brand, var(--primary));
}
.post-body p { font-size: 16px; line-height: 1.8; color: #414143; margin-bottom: 20px; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.post-body table th {
  background: var(--brand, var(--primary)); color: #fff;
  font-weight: 700; padding: 12px 16px; text-align: left;
  border: 1px solid var(--brand-dark, var(--primary-dark));
}
.post-body table td { padding: 12px 16px; border: 1px solid #ddd; vertical-align: top; }
.post-body table tr:nth-child(even) td { background: #f9f9f9; }
.post-body blockquote {
  border-left: 4px solid var(--brand-border, var(--primary-border));
  padding: 16px 24px; margin: 24px 0;
  background: var(--brand-bg, var(--primary-bg)); border-radius: 0 8px 8px 0;
}
.post-body em { font-style: normal; color: #888; font-size: 14px; }
.post-body img { border-radius: 10px; margin: 24px 0; }

.post-cta {
  margin-top: 56px; padding: 36px 28px;
  background: var(--brand-bg, var(--primary-bg));
  border: 1px solid var(--brand-border, var(--primary-border));
  border-radius: 16px; text-align: center;
}
.post-cta h2 { font-size: 20px; margin: 0 0 12px; border: none; padding: 0; }
.post-cta p { font-size: 14px; color: #555; margin: 0 0 20px; }
.post-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.post-cta__btns .btn { padding: 14px 28px; font-size: 15px; }

.post-share { margin: 32px 0; text-align: center; }
.share-x { display: inline-block; padding: 10px 20px; border: 1px solid #ddd; border-radius: 999px; font-size: 13px; color: #333; }
.share-x:hover { background: #f5f5f5; }

.post-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e4e8ee; }
.post-related h2 { font-size: 18px; margin-bottom: 16px; border: none; padding: 0; }
.post-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-related a { display: block; padding: 14px 16px; background: #f7f9fb; border-radius: 10px; font-size: 14px; color: #1a1a1a; }
.post-related a:hover { background: var(--brand-bg, var(--primary-bg)); color: var(--brand, var(--primary)); }

.site-footer {
  background: #0d4a2d; color: rgba(255,255,255,0.6);
  margin-top: 80px; padding: 40px 0 16px;
}
.site-footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start;
}
.site-footer__brand { color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.site-footer__inner p { font-size: 12px; margin: 0; }
.site-footer__nav { display: flex; gap: 20px; margin-left: auto; font-size: 12px; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__btm {
  max-width: 1100px; margin: 24px auto 0; padding: 16px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 11px; color: rgba(255,255,255,0.4);
}
